]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
expire: Log configuration at startup if mail_debug=yes.
authorTimo Sirainen <tss@iki.fi>
Fri, 10 Jul 2009 17:49:17 +0000 (13:49 -0400)
committerTimo Sirainen <tss@iki.fi>
Fri, 10 Jul 2009 17:49:17 +0000 (13:49 -0400)
--HG--
branch : HEAD

src/plugins/expire/expire-env.c

index c7de2538b0964d149c79c855d39d4dfb8f16adca..6e6d0f743db9888b7436a9da8a8f167221191b91 100644 (file)
@@ -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);
        }
 }