changeset 22078:f2b50a4a6951

lib-storage: Fix mailbox list index notifications when modseqs aren't enabled. No notifications were sent if highest_modseqs weren't updated in mailbox list index.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Wed, 17 May 2017 17:14:05 +0300
parents a75945a50239
children bb8eb229d0fb
files src/lib-storage/list/mailbox-list-index-notify.c
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/list/mailbox-list-index-notify.c	Wed May 17 11:40:53 2017 +0300
+++ b/src/lib-storage/list/mailbox-list-index-notify.c	Wed May 17 17:14:05 2017 +0300
@@ -716,10 +716,6 @@
 		rec->events |= MAILBOX_LIST_NOTIFY_SEEN_CHANGES;
 	if (nnode->highest_modseq < status.highest_modseq)
 		rec->events |= MAILBOX_LIST_NOTIFY_MODSEQ_CHANGES;
-	else {
-		/* nothing changed */
-		return FALSE;
-	}
 
 	/* update internal state */
 	nnode->uidvalidity = status.uidvalidity;
@@ -727,7 +723,7 @@
 	nnode->messages = status.messages;
 	nnode->unseen = status.unseen;
 	nnode->highest_modseq = status.highest_modseq;
-	return TRUE;
+	return rec->events != 0;
 }
 
 static bool