Skip to content

Commit

Permalink
lib-storage: Log an info message when dovecot.index.pvt UIDVALIDITY c…
Browse files Browse the repository at this point in the history
…hanges
  • Loading branch information
sirainen authored and GitLab committed May 29, 2017
1 parent c50602b commit e67df1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib-storage/index/index-sync-pvt.c
Expand Up @@ -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. */
Expand Down

0 comments on commit e67df1f

Please sign in to comment.