dovecot-2.2: lib-storage: Private index needs to be synced also ...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jul 4 13:14:09 EEST 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/dfd3f9135017
changeset: 14707:dfd3f9135017
user: Timo Sirainen <tss at iki.fi>
date: Wed Jul 04 13:13:56 2012 +0300
description:
lib-storage: Private index needs to be synced also when messages have been expunged.
diffstat:
src/lib-storage/index/index-sync-pvt.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (15 lines):
diff -r e59dfda2a02f -r dfd3f9135017 src/lib-storage/index/index-sync-pvt.c
--- a/src/lib-storage/index/index-sync-pvt.c Wed Jul 04 12:37:02 2012 +0300
+++ b/src/lib-storage/index/index-sync-pvt.c Wed Jul 04 13:13:56 2012 +0300
@@ -132,8 +132,9 @@
return 0;
}
hdr_pvt = mail_index_get_header(box->view_pvt);
- if (hdr_pvt->next_uid == hdr_shared->next_uid) {
- /* no new mails, don't bother syncing */
+ if (hdr_pvt->next_uid == hdr_shared->next_uid &&
+ hdr_pvt->messages_count == hdr_shared->messages_count) {
+ /* no new or expunged mails, don't bother syncing */
mail_index_view_close(&view_shared);
return 0;
}
More information about the dovecot-cvs
mailing list