]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
quota-status: Return 554 instead of 552 on quota failures.
authorTimo Sirainen <tss@iki.fi>
Fri, 3 May 2013 14:17:15 +0000 (17:17 +0300)
committerTimo Sirainen <tss@iki.fi>
Fri, 3 May 2013 14:17:15 +0000 (17:17 +0300)
This is because RFC 5321/2821 recommends that 552 is treated the same as 452.

src/plugins/quota/quota-status.c

index 23a0070db9ab19f0ffc8409333d0be48179e3ea4..bfac5e7bf6f6fe4b3dd260ad68ac15fede9d2b53 100644 (file)
@@ -107,7 +107,7 @@ static void client_handle_request(struct quota_client *client)
                        /* over quota */
                        value = mail_user_plugin_getenv(user, "quota_status_overquota");
                        if (value == NULL)
-                               value = t_strdup_printf("552 5.2.2 %s\n\n", error);
+                               value = t_strdup_printf("554 5.2.2 %s\n\n", error);
                }
                mail_user_unref(&user);
                mail_storage_service_user_free(&service_user);