[imp] qetquotaroot? not in PHP?
John McCoy, Jr.
jmccoy@mills.edu
Tue, 12 Mar 2002 14:06:25 -0800
To follow up looks like I'm using good syntax:
From: http://www.scit.wlv.ac.uk/rfc/rfc20xx/RFC2087.html#5
4.2. GETQUOTA Command
Arguments: quota root
Data: untagged responses: QUOTA
Result: OK - getquota completed
NO - getquota error: no such quota root, permission
denied
BAD - command unknown or arguments invalid
The GETQUOTA command takes the name of a quota root and returns the
quota root's resource usage and limits in an untagged QUOTA response.
Example: C: A003 GETQUOTA ""
S: * QUOTA "" (STORAGE 10 512)
S: A003 OK Getquota completed
4.3. GETQUOTAROOT Command
Arguments: mailbox name
Data: untagged responses: QUOTAROOT, QUOTA
Result: OK - getquota completed
NO - getquota error: no such mailbox, permission denied
BAD - command unknown or arguments invalid
The GETQUOTAROOT command takes the name of a mailbox and returns the
list of quota roots for the mailbox in an untagged QUOTAROOT response.
For each listed quota root, it also returns the quota root's resource
usage and limits in an untagged QUOTA response.
Example: C: A003 GETQUOTAROOT INBOX
S: * QUOTAROOT INBOX ""
S: * QUOTA "" (STORAGE 10 512)
S: A003 OK Getquota completed
-----Original Message-----
From: John McCoy, Jr. [mailto:jmccoy@mills.edu]
Sent: Tuesday, March 12, 2002 1:41 PM
To: imp@lists.horde.org
Subject: [imp] qetquotaroot? not in PHP?
Getting in over my head but still treading some water so her it goes.
In researching this problem I know that my IMAP server (Courier-1.3.4)
supports this functionality. Courier is also the "preferred" IMAP server
for IMP. But Courier-IMAP has no c-client library so the one from
UW-IMAP 2000+ must be used (I used 2001a). From telnet tests I can only
figure out the syntax for getquotaroot but not getquota.
* OK Courier-IMAP ready. Copyright 1998-2002 Double Precision, Inc. See
COPYING for distribution information.
. login teststud password
. OK LOGIN Ok.
. getquotaroot INBOX
* QUOTAROOT "INBOX" "ROOT"
* QUOTA "ROOT" (STORAGE 37 97657 MESSAGE 18 10000)
. OK GETQUOTAROOT Ok.
. getquotaroot ROOT
. NO Invalid mailbox
. getquota
. BAD GETQUOTA No such Quota Root.
. getquota user.teststud
. BAD GETQUOTA No such Quota Root.
. getquota user.teststud ROOT
. BAD GETQUOTA No such Quota Root.
. getquota ROOT user.teststud
. BAD GETQUOTA No such Quota Root.
On the PHP site I found:
User Contributed Notes
imap_get_quota
pg@finesse-net.de
26-Feb-2002 06:06
It is better to replace "imap_getquota()" with
"imap_getquotaroot()" in php_imap.c, because the latter is
usable by the user so no need to create a mailbox admin user.
Pascal
I can tell that my php_imap.c only has imap_getquota()
How is this to work then? What combination have others used to make this
work? Thanks for any help in this.
Also from imp/config/conf.php
$quota = @imap_get_quota($stream, 'ROOT');
shouldn't this be:
$quota = @imap_get_quota($stream, 'INBOX');
IMP 3.0 CVS
Horde 2.0 CVS
Turba 1.0 CVS
********************************
John McCoy, Jr jmccoy@mills.edu
Central Systems Administrator
Mills College Oakland, CA
Voice: 510-430-3321
*********************************
--
IMP mailing list: http://horde.org/imp/
Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: imp-unsubscribe@lists.horde.org