dovecot-2.0: qresync: Fixed off-by-one modseq comparison when fi...

dovecot at dovecot.org dovecot at dovecot.org
Fri Aug 28 22:25:42 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/9996521d883a
changeset: 9823:9996521d883a
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Aug 28 15:25:30 2009 -0400
description:
qresync: Fixed off-by-one modseq comparison when figuring out what VANISHED replies to send.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/imap/imap-fetch.c |    2 +-

diffs (12 lines):

diff -r 8f92498a6c88 -r 9996521d883a src/imap/imap-fetch.c
--- a/src/imap/imap-fetch.c	Fri Aug 28 15:22:08 2009 -0400
+++ b/src/imap/imap-fetch.c	Fri Aug 28 15:25:30 2009 -0400
@@ -273,7 +273,7 @@ imap_fetch_send_vanished(struct imap_fet
 	const struct mail_search_arg *uidarg = ctx->search_args->args;
 	const struct mail_search_arg *modseqarg = uidarg->next;
 	const ARRAY_TYPE(seq_range) *uids = &uidarg->value.seqset;
-	uint64_t modseq = modseqarg->value.modseq->modseq;
+	uint64_t modseq = modseqarg->value.modseq->modseq - 1;
 	ARRAY_TYPE(mailbox_expunge_rec) expunges;
 	ARRAY_TYPE(seq_range) expunges_range;
 	string_t *str;


More information about the dovecot-cvs mailing list