[dev] Re: [cvs] commit: imp/lib/Quota courier.php

John Morrissey jwm at horde.net
Sat May 31 10:18:05 PDT 2003


On Sat, May 31, 2003 at 09:41:57AM -0700, Jan Schneider wrote:
%   Modified files:
%     lib/Quota            courier.php 
%   Log:
%   Use imap_get_quotaroot() if available.
%   I have no Courier server at hand so someone else has to test if I didn't
%   break anything.

This breaks my Courier installation:

Warning: imap_get_quotaroot(): c-client imap_getquotaroot failed in
/var/www/html/horde/imp/lib/Quota/courier.php on line 31

The following fixes it, but I'm not sure about the impact of ROOT -> INBOX.

Index: courier.php
===================================================================
RCS file: /repository/imp/lib/Quota/courier.php,v
retrieving revision 1.16
diff -u -r1.16 courier.php
--- courier.php 31 May 2003 16:41:56 -0000      1.16
+++ courier.php 31 May 2003 17:16:45 -0000
@@ -28,7 +28,7 @@
         $quota = null;
 
         if (function_exists('imap_get_quotaroot')) {
-            @$quota = imap_get_quotaroot($_SESSION['imp']['stream'], 'ROOT');
+            @$quota = imap_get_quotaroot($_SESSION['imp']['stream'], 'INBOX');
         } else {
             require_once IMP_BASE . '/lib/IMAP.php';
             $imp_imap = &IMP_IMAP::singleton();

john
-- 
John Morrissey          _o            /\         ----  __o
jwm at horde.net        _-< \_          /  \       ----  <  \,
www.horde.net/    __(_)/_(_)________/    \_______(_) /_(_)__


More information about the dev mailing list