]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
virtual: Do not remove mailbox notify if the mailbox is closed
authorAki Tuomi <aki.tuomi@dovecot.fi>
Thu, 20 Jul 2017 08:01:37 +0000 (11:01 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 20 Jul 2017 08:35:53 +0000 (11:35 +0300)
The backend mailbox close/open status is not related to
the notify API usage. The notify is removed in
virtual_mailbox_close_internal instead when we are
actually deinitializing.

src/plugins/virtual/virtual-storage.c

index efa51293af298cb1419febb5f5cd6f0c9f8ccf09..cd24fc3adf0bd433277c146aef6a16d4279e0621 100644 (file)
@@ -343,9 +343,6 @@ static void virtual_backend_mailbox_close(struct mailbox *box)
        struct virtual_backend_box *bbox = VIRTUAL_CONTEXT(box);
        struct virtual_backend_mailbox *vbox = VIRTUAL_BACKEND_CONTEXT(box);
 
-       if (bbox != NULL && bbox->notify != NULL)
-               mailbox_list_notify_deinit(&bbox->notify);
-
        if (bbox != NULL && bbox->open_tracked) {
                /* we could have gotten here from e.g. mailbox_autocreate()
                   without going through virtual_mailbox_close() */