dovecot-2.2: imap: Avoid sending multiple unnecessary VANISHED l...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Jan 5 01:14:33 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/bcd2d140ea10
changeset: 15507:bcd2d140ea10
user: Timo Sirainen <tss at iki.fi>
date: Tue Nov 06 22:13:13 2012 +0200
description:
imap: Avoid sending multiple unnecessary VANISHED lines when sync had lots of changes.
diffstat:
src/imap/imap-sync.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (16 lines):
diff -r ba1287f46c98 -r bcd2d140ea10 src/imap/imap-sync.c
--- a/src/imap/imap-sync.c Mon Nov 05 14:28:24 2012 +0200
+++ b/src/imap/imap-sync.c Tue Nov 06 22:13:13 2012 +0200
@@ -472,8 +472,10 @@
ctx->seq = 0;
}
- if (array_is_created(&ctx->expunges))
- imap_sync_vanished(ctx);
+ if (ret > 0) {
+ if (array_is_created(&ctx->expunges))
+ imap_sync_vanished(ctx);
+ }
return ret;
}
More information about the dovecot-cvs
mailing list