]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
quota: Change MAIL_ERROR_LIMIT to MAIL_ERROR_TOOBIG if size quota is exceeded
authorAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 9 Dec 2025 11:25:59 +0000 (13:25 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Wed, 17 Dec 2025 12:31:53 +0000 (12:31 +0000)
src/plugins/quota/quota-storage.c

index 58eed63e9f3af86043edaceddfb7c48525ce4e21..a20325843eb15da4ee2cc238caf27c56b13b5a5a 100644 (file)
@@ -58,7 +58,7 @@ static void quota_set_storage_error(struct quota_transaction_context *qt,
        struct mail_storage *storage = box->storage;
        switch (res) {
        case QUOTA_ALLOC_RESULT_OVER_MAXSIZE:
-               mail_storage_set_error(storage, MAIL_ERROR_LIMIT, errstr);
+               mail_storage_set_error(storage, MAIL_ERROR_TOOBIG, errstr);
                break;
        case QUOTA_ALLOC_RESULT_OVER_QUOTA_LIMIT:
        case QUOTA_ALLOC_RESULT_OVER_QUOTA_MAILBOX_LIMIT: