Mercurial > dovecot > core-2.2
changeset 12835:63ed0d3f4f52
expire: Added more debugging with mail_debug=yes
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 07 Mar 2011 00:57:08 +0200 |
parents | eac54c2dc98b |
children | 2cb0fb910441 |
files | src/plugins/expire/expire-plugin.c |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/expire/expire-plugin.c Mon Mar 07 00:56:54 2011 +0200 +++ b/src/plugins/expire/expire-plugin.c Mon Mar 07 00:57:08 2011 +0200 @@ -128,6 +128,11 @@ if (xt->first_expunged) { /* first mail expunged. dict needs updating. */ first_nonexpunged_timestamp(t, &new_stamp); + if (user->mail_debug) { + i_debug("expire: Expunging first message in %s, " + "updating timestamp to %ld", + box->vname, (long)new_stamp); + } update_dict = TRUE; } @@ -167,6 +172,11 @@ } else { /* already exists */ } + if (user->mail_debug && update_dict) { + i_debug("expire: Saving first message to %s, " + "updating timestamp to %ld", + box->vname, (long)new_stamp); + } } if (update_dict) {