# HG changeset patch # User Timo Sirainen # Date 1504533592 -10800 # Node ID 056a93bfc6691f6cf06be3d4fa02df9cece21b82 # Parent 725057ef25e456fed4ba1f1e7816bb9c0c32fdbb 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. diff -r 725057ef25e4 -r 056a93bfc669 src/lib-storage/list/mailbox-list-index-notify.c --- 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 */