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.3.0.rc1~1233 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a758aabec2ca2f3701d0e0684251eed47fffbd2;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 aa038830f6..e5894691b1 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() */