From: Timo Sirainen Date: Wed, 24 May 2017 08:50:08 +0000 (+0300) Subject: lib-storage: Log an info message when dovecot.index.pvt UIDVALIDITY changes X-Git-Tag: 2.3.0.rc1~1559 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e67df1f706dad04717bc7e6e238fc767e6290fae;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: Log an info message when dovecot.index.pvt UIDVALIDITY changes --- diff --git a/src/lib-storage/index/index-sync-pvt.c b/src/lib-storage/index/index-sync-pvt.c index 59683166b6..530052ce85 100644 --- a/src/lib-storage/index/index-sync-pvt.c +++ b/src/lib-storage/index/index-sync-pvt.c @@ -175,12 +175,15 @@ index_mailbox_sync_pvt_index(struct index_mailbox_sync_pvt_context *ctx, t_array_init(&keywords, 32); } } else if (hdr_pvt->uid_validity == 0 && hdr_pvt->next_uid <= 1) { - /* creating the initial index */ + /* creating the initial index - no logging */ reset = TRUE; initial_index = TRUE; } else { /* mailbox created/recreated */ reset = TRUE; + i_info("Mailbox %s UIDVALIDITY changed (%u -> %u), reseting private index", + ctx->box->vname, hdr_pvt->uid_validity, + hdr_shared->uid_validity); } /* for public namespaces copy the initial private flags from the shared index. this allows Sieve scripts to set the initial flags. */