]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
quota_clone plugin: quota_clone_mail_user_created warned without debug
authorJ. Nick Koston <nick@cpanel.net>
Sat, 9 Apr 2016 23:21:23 +0000 (18:21 -0500)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 8 Aug 2016 12:53:27 +0000 (15:53 +0300)
"The quota_clone_dict setting is missing from configuration" warning
would be thrown when debug mode was not enabled.  This warning
happens under normal circumstances when prefix="" namespace is not
defined (usually when set to INBOX.)

See http://dovecot.org/list/dovecot-cvs/2012-October/021981.html for
more details on the automagic prefix="" namespace.

This change suppresses the spurious warning.

src/plugins/quota-clone/quota-clone-plugin.c

index 0dbbf72297c58c608ab74275a0a927fc0c2ffac2..e2b5b760abcf56234e105eee3f38422b04b5762f 100644 (file)
@@ -164,7 +164,9 @@ static void quota_clone_mail_user_created(struct mail_user *user)
 
        uri = mail_user_plugin_getenv(user, "quota_clone_dict");
        if (uri == NULL || uri[0] == '\0') {
-               i_error("The quota_clone_dict setting is missing from configuration");
+               if (user->mail_debug) {
+                       i_debug("The quota_clone_dict setting is missing from configuration");
+               }
                return;
        }