[bugs] [Bug 1229] New - Quota from Courier IMAP (imp-4.0-cvs)
bugs at bugs.horde.org
bugs at bugs.horde.org
Fri Apr 25 11:13:40 PDT 2003
http://bugs.horde.org/show_bug.cgi?id=1229
*** shadow/1229 Fri Apr 25 10:13:40 2003
--- shadow/1229.tmp.680 Fri Apr 25 10:13:40 2003
***************
*** 0 ****
--- 1,46 ----
+ Bug#: 1229
+ Product: Horde
+ Version: other
+ Platform: PHP Code
+ OS/Version: other
+ Status: NEW
+ Resolution:
+ Severity: normal
+ Priority: P2
+ Component: IMP
+ Area: BUILD
+ AssignedTo: chuck at horde.org
+ ReportedBy: petr.kocvara at nemfm.cz
+ URL:
+ Summary: Quota from Courier IMAP (imp-4.0-cvs)
+
+ Broken quota values in IMP (4.0-cvs) from Courier IMAP due to a bugs in
+ imp/lib/Quota/courier.php.
+
+ here is a small patch:
+
+ --- imp/lib/Quota/courier.php.old Tue Apr 22 05:49:02 2003
+ +++ imp/lib/Quota/courier.php Fri Apr 25 12:54:51 2003
+ @@ -26,16 +26,16 @@
+ function quotaHTML()
+ {
+ require_once IMP_BASE . '/lib/IMAP.php';
+ - $imp_imap = &IMP_IMAP::singleton():
+ + $imp_imap = &IMP_IMAP::singleton();
+ $stream = $imp_imap->openIMAPStream(null, OP_HALFOPEN);
+
+ if ($stream !== false) {
+ $quota = @imap_get_quota($stream, 'ROOT');
+ @imap_close($stream);
+ if (is_array($quota)) {
+ - if (empty($quota['limit'])) {
+ + if (!empty($quota['limit'])) {
+ return $this->_quotaHTML($quota['usage'] * 1024, $quota
+ ['limit'] * 1024);
+ - } elseif (empty($quota['STORAGE']['limit'])) {
+ + } elseif (!empty($quota['STORAGE']['limit'])) {
+ return $this->_quotaHTML($quota['STORAGE']['usage'] *
+ 1024, $quota['STORAGE']['limit'] * 1024);
+ }
+ }
+
More information about the bugs
mailing list