]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Remove INBOX notification checks if mailbox events aren't requested
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 4 Sep 2017 13:59:52 +0000 (16:59 +0300)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Tue, 5 Sep 2017 07:47:28 +0000 (10:47 +0300)
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.

src/lib-storage/list/mailbox-list-index-notify.c

index 33c3172fdd3ff3eb694df5a2b9dcc5fb474b1c90..06048e14b7c57a8720eea1ffa0bf6bb9a3478cde 100644 (file)
@@ -105,6 +105,8 @@ int mailbox_list_index_notify_init(struct mailbox_list *list,
                /* 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 */