dovecot-1.0: When saving a message to maildir without dovecot-ui...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jun 14 14:53:52 EEST 2007
details: http://hg.dovecot.org/dovecot-1.0/rev/0f40f19d2ae4
changeset: 5312:0f40f19d2ae4
user: Timo Sirainen <tss at iki.fi>
date: Thu Jun 14 14:53:47 2007 +0300
description:
When saving a message to maildir without dovecot-uidlist file, give the
newly created uidlist file a non-zero uidvalidity.
diffstat:
1 file changed, 5 insertions(+)
src/lib-storage/index/maildir/maildir-uidlist.c | 5 +++++
diffs (15 lines):
diff -r 3099b59226af -r 0f40f19d2ae4 src/lib-storage/index/maildir/maildir-uidlist.c
--- a/src/lib-storage/index/maildir/maildir-uidlist.c Thu Jun 14 05:31:03 2007 +0300
+++ b/src/lib-storage/index/maildir/maildir-uidlist.c Thu Jun 14 14:53:47 2007 +0300
@@ -958,6 +958,11 @@ static void maildir_uidlist_swap(struct
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);
More information about the dovecot-cvs
mailing list