dovecot-2.1: maildir: Drop internal new-flag from mails that hav...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Sep 5 11:45:55 EEST 2011
details: http://hg.dovecot.org/dovecot-2.1/rev/ed8ed96cc828
changeset: 13399:ed8ed96cc828
user: Timo Sirainen <tss at iki.fi>
date: Mon Sep 05 11:45:45 2011 +0300
description:
maildir: Drop internal new-flag from mails that have been moved from new/ to cur/.
This avoids unnecessary cur/ directory scans.
diffstat:
src/lib-storage/index/maildir/maildir-uidlist.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r 361aafbd448c -r ed8ed96cc828 src/lib-storage/index/maildir/maildir-uidlist.c
--- a/src/lib-storage/index/maildir/maildir-uidlist.c Mon Sep 05 11:34:43 2011 +0300
+++ b/src/lib-storage/index/maildir/maildir-uidlist.c Mon Sep 05 11:45:45 2011 +0300
@@ -1688,7 +1688,9 @@
}
}
- rec->flags = (rec->flags | flags) & ~MAILDIR_UIDLIST_REC_FLAG_NONSYNCED;
+ rec->flags = (rec->flags | flags) &
+ ~(MAILDIR_UIDLIST_REC_FLAG_NONSYNCED |
+ MAILDIR_UIDLIST_REC_FLAG_NEW_DIR);
rec->filename = p_strdup(uidlist->record_pool, filename);
hash_table_insert(uidlist->files, rec->filename, rec);
More information about the dovecot-cvs
mailing list