]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
quota: Use mail_user_plugin_getenv_bool to get quota_vsizes
authorMartti Rannanjärvi <martti.rannanjarvi@dovecot.fi>
Wed, 22 Mar 2017 16:02:37 +0000 (18:02 +0200)
committerGitLab <gitlab@git.dovecot.net>
Thu, 23 Mar 2017 13:27:14 +0000 (15:27 +0200)
src/plugins/quota/quota.c

index b41ccfb610391db3523ca962ae72e97810c52ccf..fa695d73bae0413d3401dacc6df685120265058b 100644 (file)
@@ -258,7 +258,7 @@ int quota_user_read_settings(struct mail_user *user,
                mail_user_plugin_getenv(user, "quota_exceeded_message");
        if (quota_set->quota_exceeded_msg == NULL)
                quota_set->quota_exceeded_msg = DEFAULT_QUOTA_EXCEEDED_MSG;
-       quota_set->vsizes = mail_user_plugin_getenv(user, "quota_vsizes") != NULL;
+       quota_set->vsizes = mail_user_plugin_getenv_bool(user, "quota_vsizes");
 
        const char *max_size = mail_user_plugin_getenv(user,
                                                       "quota_max_mail_size");