]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
notify-status: Remove first_unseen_seq field
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 18 Sep 2017 20:04:55 +0000 (23:04 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 18 Sep 2017 20:07:07 +0000 (23:07 +0300)
The sequence number keeps changing, so it's very unlikely to be useful.
It's also not always as efficiently available as the other fields, so
better to avoid having it.

src/plugins/notify-status/notify-status-plugin.c

index a6e6a27e5dcb65fe8e0900a54704789cb3bf5bed..539683b2aace9a4dafe10e1c5453676872427f81 100644 (file)
@@ -119,7 +119,7 @@ static void notify_update_callback(const struct dict_commit_result *result,
 
 #define MAILBOX_STATUS_NOTIFY (STATUS_MESSAGES|STATUS_UNSEEN|\
                               STATUS_RECENT|STATUS_UIDNEXT|\
-                              STATUS_UIDVALIDITY|STATUS_FIRST_UNSEEN_SEQ|\
+                              STATUS_UIDVALIDITY|\
                               STATUS_HIGHESTMODSEQ|STATUS_FIRST_RECENT_UID|\
                               STATUS_HIGHESTPVTMODSEQ)
 static void notify_update_mailbox_status(struct mailbox *box)
@@ -165,7 +165,6 @@ static void notify_update_mailbox_status(struct mailbox *box)
                        { '\0', dec2str(status.recent), "recent" },
                        { '\0', dec2str(status.uidvalidity), "uidvalidity" },
                        { '\0', dec2str(status.uidnext), "uidnext" },
-                       { '\0', dec2str(status.first_unseen_seq), "first_unseen_seq" },
                        { '\0', dec2str(status.first_recent_uid), "first_recent_uid" },
                        { '\0', dec2str(status.highest_modseq), "highest_modseq" },
                        { '\0', dec2str(status.highest_pvt_modseq), "highest_pvt_modseq" },