Skip to content

Commit

Permalink
lib-storage: Fix mailbox list index notifications when modseqs aren't…
Browse files Browse the repository at this point in the history
… enabled.

No notifications were sent if highest_modseqs weren't updated in mailbox
list index.
  • Loading branch information
sirainen authored and villesavolainen committed May 26, 2017
1 parent 8f195c1 commit f7e77fb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/lib-storage/list/mailbox-list-index-notify.c
Expand Up @@ -716,18 +716,14 @@ mailbox_list_index_notify_change(struct mailbox_list_notify_index *inotify,
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;
nnode->uidnext = status.uidnext;
nnode->messages = status.messages;
nnode->unseen = status.unseen;
nnode->highest_modseq = status.highest_modseq;
return TRUE;
return rec->events != 0;
}

static bool
Expand Down

0 comments on commit f7e77fb

Please sign in to comment.