From: Aki Tuomi Date: Thu, 20 Jul 2017 08:01:37 +0000 (+0300) Subject: virtual: Do not remove mailbox notify if the mailbox is closed X-Git-Tag: 2.2.32.rc1~60 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=adaecdb1f24a8a64b99f140a9db1457478030fdd;p=thirdparty%2Fdovecot%2Fcore.git virtual: Do not remove mailbox notify if the mailbox is closed 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. --- diff --git a/src/plugins/virtual/virtual-storage.c b/src/plugins/virtual/virtual-storage.c index efa51293af..cd24fc3adf 100644 --- a/src/plugins/virtual/virtual-storage.c +++ b/src/plugins/virtual/virtual-storage.c @@ -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() */