dovecot-2.2: imap: NOTIFY SET STATUS didn't send HIGHESTMODSEQ i...

dovecot at dovecot.org dovecot at dovecot.org
Mon Aug 31 20:12:17 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/238a34ad1ab0
changeset: 19050:238a34ad1ab0
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Aug 31 23:11:17 2015 +0300
description:
imap: NOTIFY SET STATUS didn't send HIGHESTMODSEQ in STATUS reponses when needed.

diffstat:

 src/imap/cmd-notify.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 8f96bbd1691f -r 238a34ad1ab0 src/imap/cmd-notify.c
--- a/src/imap/cmd-notify.c	Mon Aug 31 22:45:17 2015 +0300
+++ b/src/imap/cmd-notify.c	Mon Aug 31 23:11:17 2015 +0300
@@ -391,6 +391,9 @@
 
 	items.status = STATUS_UIDVALIDITY | STATUS_UIDNEXT |
 		STATUS_MESSAGES | STATUS_UNSEEN;
+	if ((ctx->global_used_events & (IMAP_NOTIFY_EVENT_FLAG_CHANGE |
+					IMAP_NOTIFY_EVENT_ANNOTATION_CHANGE)) != 0)
+		items.status |= STATUS_HIGHESTMODSEQ;
 
 	box = mailbox_alloc(info->ns->list, info->vname, MAILBOX_FLAG_READONLY);
 	if (ctx->client->enabled_features != 0)


More information about the dovecot-cvs mailing list