[imp] Patch for Cyrus quota

Richard.Heggs at nottinghamcity.gov.uk Richard.Heggs at nottinghamcity.gov.uk
Sun Dec 21 03:54:07 PST 2003


Hi List,

This is a one-line patch against HEAD that fixes the call to
imap_get_quota().

imap_get_quota() works differently to imap_get_quotaroot(): the latter
takes
the namespace ('INBOX') whereas the former requires the folder path
('user.<username>').

--
Richard Heggs
Systems Analyst
Nottingham City Council

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

######################################################################
This e-mail (and any attachments) is confidential and may contain personal
views which are not the views of Nottingham City Council unless specifically
stated. If you have received it in error, please delete it from your system,
do not use, copy or disclose the information in any way nor act in reliance
on it and notify the sender immediately. Please note that Nottingham City
Council monitors e-mails sent or received. Further communication will
signify your consent to this.
######################################################################
-------------- next part --------------
Index: cyrus.php
===================================================================
RCS file: /var/rsync-horde/imp/lib/Quota/cyrus.php,v
retrieving revision 1.17
diff -u -r1.17 cyrus.php
--- cyrus.php	30 Sep 2003 18:33:34 -0000	1.17
+++ cyrus.php	21 Dec 2003 11:40:11 -0000
@@ -59,7 +59,7 @@
         } else {
             $stream = @imap_open(IMP::serverString(), $this->_params['login'], $this->_params['password'], OP_HALFOPEN);
             if ($stream !== false) {
-                $quota = @imap_get_quota($stream, 'INBOX');
+                $quota = @imap_get_quota($stream, 'user.'.$_SESSION['imp']['user']);
                 @imap_close($stream);
             }
         }


More information about the imp mailing list