dovecot-2.0: mbox, maildir: Allow setting \Recent flag when also...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jul 28 20:57:10 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/ceb55c870ed3
changeset: 9689:ceb55c870ed3
user: Timo Sirainen <tss at iki.fi>
date: Tue Jul 28 13:57:03 2009 -0400
description:
mbox, maildir: Allow setting \Recent flag when also specifying message's UID.
diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
src/lib-storage/index/maildir/maildir-save.c | 6 +++---
diffs (16 lines):
diff -r 4d12ca03c4c0 -r ceb55c870ed3 src/lib-storage/index/maildir/maildir-save.c
--- a/src/lib-storage/index/maildir/maildir-save.c Tue Jul 28 13:56:57 2009 -0400
+++ b/src/lib-storage/index/maildir/maildir-save.c Tue Jul 28 13:57:03 2009 -0400
@@ -140,9 +140,9 @@ maildir_save_add(struct mail_save_contex
struct istream *input;
unsigned int keyword_count;
- /* don't allow caller to specify recent flag */
- _ctx->flags &= ~MAIL_RECENT;
- if (ctx->mbox->ibox.keep_recent)
+ /* allow caller to specify recent flag only when we're syncing
+ messages (uid specified). */
+ if (_ctx->uid == 0)
_ctx->flags |= MAIL_RECENT;
/* now, we want to be able to rollback the whole append session,
More information about the dovecot-cvs
mailing list