Mercurial > dovecot > original-hg > dovecot-1.2
diff src/imap/imap-fetch.c @ 8322:66a792567e59 HEAD
QRESYNC: FETCH CHANGEDSINCE and SELECT with modseq shouldn't have returned changes with the same modseq.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 24 Oct 2008 22:10:37 +0300 |
parents | 242e6d47f790 |
children | b9faf4db2a9f |
line wrap: on
line diff
--- a/src/imap/imap-fetch.c Fri Oct 24 01:56:13 2008 +0300 +++ b/src/imap/imap-fetch.c Fri Oct 24 22:10:37 2008 +0300 @@ -110,8 +110,8 @@ return ctx; } -bool imap_fetch_add_unchanged_since(struct imap_fetch_context *ctx, - uint64_t modseq) +bool imap_fetch_add_changed_since(struct imap_fetch_context *ctx, + uint64_t modseq) { struct mail_search_arg *search_arg; @@ -119,7 +119,7 @@ search_arg->type = SEARCH_MODSEQ; search_arg->value.modseq = p_new(ctx->cmd->pool, struct mail_search_modseq, 1); - search_arg->value.modseq->modseq = modseq; + search_arg->value.modseq->modseq = modseq + 1; search_arg->next = ctx->search_args->args->next; ctx->search_args->args->next = search_arg;