Mercurial > dovecot > core-2.2
changeset 9689:ceb55c870ed3 HEAD
mbox, maildir: Allow setting \Recent flag when also specifying message's UID.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 28 Jul 2009 13:57:03 -0400 |
parents | 4d12ca03c4c0 |
children | d303e3319720 |
files | src/lib-storage/index/maildir/maildir-save.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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,