]> 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)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Thu, 20 Jul 2017 08:01:37 +0000 (11:01 +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 aa038830f6a76c7286cbd1aec8c6e4fe84c5f4a5..e5894691b1ee03f98bbb7599977f512fc7a9036d 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() */