changeset 22455:056a93bfc669

lib-storage: Remove INBOX notification checks if mailbox events aren't requested Nothing would be done with the results of those checks. Note that MAILBOX_LIST_NOTIFY_UIDVALIDITY can be handled using mailbox list index, even for INBOX with mailbox_list_index_include_inbox=no.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Mon, 04 Sep 2017 16:59:52 +0300
parents 725057ef25e4
children d1658f4cb079
files src/lib-storage/list/mailbox-list-index-notify.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/list/mailbox-list-index-notify.c	Mon Sep 04 16:55:30 2017 +0300
+++ b/src/lib-storage/list/mailbox-list-index-notify.c	Mon Sep 04 16:59:52 2017 +0300
@@ -105,6 +105,8 @@
 		/* INBOX can be handled also using mailbox list index */
 	} else if ((list->ns->flags & NAMESPACE_FLAG_INBOX_ANY) == 0) {
 		/* no INBOX in this namespace */
+	} else if ((mask & MAILBOX_LIST_NOTIFY_STATUS) == 0) {
+		/* not interested in mailbox changes */
 	} else if (mailbox_list_get_path(list, "INBOX", MAILBOX_LIST_PATH_TYPE_INDEX,
 					 &index_dir) <= 0) {
 		/* no indexes for INBOX? can't handle it */