Skip to content

Commit

Permalink
quota_clone plugin: quota_clone_mail_user_created warned without debug
Browse files Browse the repository at this point in the history
"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.
  • Loading branch information
bdraco authored and GitLab committed Aug 8, 2016
1 parent dfe53c8 commit 0d1d485
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/quota-clone/quota-clone-plugin.c
Expand Up @@ -165,7 +165,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;
}

Expand Down

0 comments on commit 0d1d485

Please sign in to comment.