From 52387f291e4a23d4945a0454aba31ce9918e4e5d Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 9 Apr 2016 18:21:23 -0500 Subject: [PATCH] quota_clone plugin: quota_clone_mail_user_created warned without debug "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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/quota-clone/quota-clone-plugin.c b/src/plugins/quota-clone/quota-clone-plugin.c index 0dbbf72297..e2b5b760ab 100644 --- a/src/plugins/quota-clone/quota-clone-plugin.c +++ b/src/plugins/quota-clone/quota-clone-plugin.c @@ -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; }