dovecot-2.0: expire: Added more debugging with mail_debug=yes

dovecot at dovecot.org dovecot at dovecot.org
Mon Mar 7 00:57:10 EET 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/63ed0d3f4f52
changeset: 12666:63ed0d3f4f52
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Mar 07 00:57:08 2011 +0200
description:
expire: Added more debugging with mail_debug=yes

diffstat:

 src/plugins/expire/expire-plugin.c |  10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diffs (27 lines):

diff -r eac54c2dc98b -r 63ed0d3f4f52 src/plugins/expire/expire-plugin.c
--- 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) {


More information about the dovecot-cvs mailing list