[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dovecot-cvs
Subject:    dovecot-2.0: mbox, maildir: Allow setting \Recent flag when also...
From:       dovecot () dovecot ! org (dovecot at dovecot ! org)
Date:       2009-07-28 17:57:10
Message-ID: hg.ceb55c870ed3.1248803830.616317073 () syksy ! dovecot ! org
[Download RAW message or body]

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,

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic