From 90736469f4a430616e74072ffa74417be152abaa Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 10 Dec 2008 12:58:25 +0000 Subject: [PATCH] Updated cyrus get_quota handling -Do not display any quota warnings if the quota wasn't set git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13242 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../mail/personal/mail/class_mail-methods-cyrus.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gosa-plugins/mail/personal/mail/class_mail-methods-cyrus.inc b/gosa-plugins/mail/personal/mail/class_mail-methods-cyrus.inc index dd377f10f..152daee4d 100644 --- a/gosa-plugins/mail/personal/mail/class_mail-methods-cyrus.inc +++ b/gosa-plugins/mail/personal/mail/class_mail-methods-cyrus.inc @@ -113,10 +113,16 @@ class mailMethodCyrus extends mailMethod{ return(FALSE); } + $this->reset_error(); + /* Load quota settings */ $result = array("quotaUsage"=>"","gosaMailQuota"=>""); $quota_value = @imap_get_quota($this->imap_handle, $this->account_id); + /* Reset error queue, imap_qet_quota() will fail if the quota wasn't set yet. + */ + imap_errors(); + if(is_array($quota_value) && count($quota_value)) { if (isset($quota_value["STORAGE"]) && is_array($quota_value["STORAGE"])){ -- 2.30.2