From: Timo Sirainen Date: Fri, 10 Jul 2009 17:49:17 +0000 (-0400) Subject: expire: Log configuration at startup if mail_debug=yes. X-Git-Tag: 2.0.alpha1~446 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=80810f489265258f82bff0fd693d4750cc5c7383;p=thirdparty%2Fdovecot%2Fcore.git expire: Log configuration at startup if mail_debug=yes. --HG-- branch : HEAD --- diff --git a/src/plugins/expire/expire-env.c b/src/plugins/expire/expire-env.c index c7de2538b0..6e6d0f743d 100644 --- a/src/plugins/expire/expire-env.c +++ b/src/plugins/expire/expire-env.c @@ -62,6 +62,12 @@ expire_env_parse(struct expire_env *env, struct mail_namespace *namespaces, 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); } }