Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5740:05d06a1c0f0c HEAD
When saving a message to maildir without dovecot-uidlist file, give the
newly created uidlist file a non-zero uidvalidity.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 14 Jun 2007 14:53:47 +0300 |
parents | 94161a726c8b |
children | 7a57631e2d6c |
files | src/lib-storage/index/maildir/maildir-uidlist.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-uidlist.c Thu Jun 14 05:31:04 2007 +0300 +++ b/src/lib-storage/index/maildir/maildir-uidlist.c Thu Jun 14 14:53:47 2007 +0300 @@ -957,6 +957,11 @@ void maildir_uidlist_sync_finish(struct maildir_uidlist_sync_ctx *ctx) { + if (ctx->uidlist->uid_validity == 0) { + /* saving a message to a newly created maildir */ + ctx->uidlist->uid_validity = ioloop_time; + } + if (!ctx->partial) { if (!ctx->failed) maildir_uidlist_swap(ctx);