dovecot-2.0: expire: Log configuration at startup if mail_debug=...

dovecot at dovecot.org dovecot at dovecot.org
Fri Jul 10 20:49:25 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/26ff48e47764
changeset: 9606:26ff48e47764
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jul 10 13:49:17 2009 -0400
description:
expire: Log configuration at startup if mail_debug=yes.

diffstat:

1 file changed, 6 insertions(+)
src/plugins/expire/expire-env.c |    6 ++++++

diffs (16 lines):

diff -r e96ea07f1437 -r 26ff48e47764 src/plugins/expire/expire-env.c
--- 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
@@ -61,6 +61,12 @@ expire_env_parse(struct expire_env *env,
 					   ns == NULL ? '/' : ns->sep);
 		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);
 	}


More information about the dovecot-cvs mailing list