changeset 9606:26ff48e47764 HEAD

expire: Log configuration at startup if mail_debug=yes.
author Timo Sirainen <tss@iki.fi>
date Fri, 10 Jul 2009 13:49:17 -0400
parents e96ea07f1437
children 55690917fefb
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:49:17 2009 -0400
@@ -62,6 +62,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);
 	}
 }