From d3e7f92d88b3ac6d6f190996e36a9ff18c5369d7 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Mon, 04 Mar 2013 03:05:42 -0500
Subject: [PATCH] Smarter overquota error detection (known error strings are: "Quota exceeded" and "quotum would exceed") (#1484164)
---
program/include/rcmail.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 30d1fe8..192fb9f 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -1821,7 +1821,7 @@
$error = 'errornoperm';
}
// try to detect full mailbox problem and display appropriate message
- else if (stripos($err_str, 'Quota exceeded') !== false) {
+ else if (stripos($err_str, 'quota') !== false && stripos($err_str, 'exceed') !== false) {
$error = 'erroroverquota';
}
else {
--
Gitblit v1.9.1