]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
expire plugin: Fixed debug logging to use mail_debug setting.
authorTimo Sirainen <tss@iki.fi>
Mon, 7 Dec 2009 20:53:14 +0000 (15:53 -0500)
committerTimo Sirainen <tss@iki.fi>
Mon, 7 Dec 2009 20:53:14 +0000 (15:53 -0500)
--HG--
branch : HEAD

src/plugins/expire/expire-env.c

index 6e6d0f743db9888b7436a9da8a8f167221191b91..72d9907b9bf7a13476650b9201bc57772e163ea8 100644 (file)
@@ -62,7 +62,7 @@ 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) {
+               if (namespaces->user->mail_debug) {
                        i_info("expire: pattern=%s type=%s secs=%u",
                               box.pattern, type == EXPIRE_TYPE_EXPUNGE ?
                               "expunge" : "altmove", box.expire_secs);