changeset 9224:bdd8cb7f341a HEAD

expire: Log initial configuration if mail_debug=yes.
author Timo Sirainen <tss@iki.fi>
date Fri, 10 Jul 2009 13:48:41 -0400
parents 66040bffc1a5
children f353c5b71097
files src/plugins/expire/expire-env.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/expire/expire-env.c	Fri Jul 10 11:08:35 2009 -0400
+++ b/src/plugins/expire/expire-env.c	Fri Jul 10 13:48:41 2009 -0400
@@ -51,6 +51,12 @@
 		box.type = type;
 		box.expire_secs = strtoul(names[1], NULL, 10) * 3600 * 24;
 
+		if (getenv("DEBUG") != NULL) {
+			i_info("expire: pattern=%s type=%s secs=%u",
+			       box.pattern, type == EXPIRE_TYPE_EXPUNGE ?
+			       "expunge" : "altmove", box.expire_secs);
+		}
+
 		array_append(&env->expire_boxes, &box, 1);
 	}
 }