summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-03-02 19:54:11 +0100
committerAleksander Machniak <alec@alec.pl>2013-03-02 19:54:11 +0100
commit0bf724ef1f6a980479d7d6dfc6af62aa421a2888 (patch)
tree7bc40a3ecd8f744d9fbe853a78352071535b5839 /program/include
parente0d4662523cde95c89d5374bf5eba70738606d1c (diff)
Display user-friendly message on IMAP "over quota" errors (#1484164)
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcmail.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 70dba4192..667be14bc 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -1810,11 +1810,18 @@ class rcmail extends rcube
else if ($res_code == rcube_storage::READONLY) {
$this->output->show_message('errorreadonly', 'error');
}
+ else if ($res_code == rcube_storage::OVERQUOTA) {
+ $this->output->show_message('errorroverquota', 'error');
+ }
else if ($err_code && ($err_str = $this->storage->get_error_str())) {
// try to detect access rights problem and display appropriate message
if (stripos($err_str, 'Permission denied') !== false) {
$this->output->show_message('errornoperm', 'error');
}
+ // try to detect full mailbox problem and display appropriate message
+ else if (stripos($err_str, 'Quota exceeded') !== false) {
+ $this->output->show_message('erroroverquota', 'error');
+ }
else {
$this->output->show_message('servererrormsg', 'error', array('msg' => $err_str));
}