From 8c93c29d04e5ef3cc81a86ac03708a758071b73c Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Mon, 04 Mar 2013 04:38:03 -0500
Subject: [PATCH] Really fix "quotum would exceed" error message handling

---
 program/include/rcmail.php |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 192fb9f..b2d6966 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -1821,7 +1821,8 @@
                 $error = 'errornoperm';
             }
             // try to detect full mailbox problem and display appropriate message
-            else if (stripos($err_str, 'quota') !== false && stripos($err_str, 'exceed') !== false) {
+            // there can be e.g. "Quota exceeded" or "quotum would exceed"
+            else if (stripos($err_str, 'quot') !== false && stripos($err_str, 'exceed') !== false) {
                 $error = 'erroroverquota';
             }
             else {

--
Gitblit v1.9.1