Just as a final note (hopefully helpful to anyone searching for
this in the future). If you want to use PHP's imap_get_quota() 
function, but didn't compile courier with client-bug workarounds, 
just make the second argument to imap_get_quota() be "ROOT", and it
should work. 

[begin]
$stream = @imap_open(IMP::serverString(), $imap_admin, $imap_passwd, OP_HALFOPEN);
$quota = @imap_get_quota($stream, 'ROOT');
[end]

$imap_admin and $imap_passwd are just the user's log credentials.

On Tue, Dec 11, 2001 at 12:14:46AM +0100, Oliver Blasnik wrote:
> Hi Joshua,
> 
> > The PHP imap_get_quota function requires that the imap session be
> > opened by an administrative user (to issue GETQUOTA commands). 
> 
> The PHP-people only refer to cyrus imapd, which implementation is... just
> let's say: "curious" and I really can't find anything of the cyrus-
> implementation in rfc (like: an admin-user has all quota-information
> in quotaroots named "user.username").
> 
> Use the user's login for courier and "--enable-workarounds-for-imap-
> client-bugs", allowing you to give any quotaroot-name you'd like to 
> courier.
> 
> > Does Courier-IMAP support this? If so, how is it configured? 
> 
> Courier does not support it as this is "wrong". But helps out for
> php-imap using "client-bugs" compile.
> 
> I sent a feature request to the php team to implement "getquotaroot",
> but there were no replys. As long as php does not have this function,
> it's impossible to check quota "the correct way".
> 
> > Joshua Warchol
> 
> Cu, Oliver
> -- 
> -- http://www.nextra.de - INTERNET@WORK ----- [EMAIL PROTECTED] --
>  Nextra Deutschland     | Oliver Blasnik      Senior System Administrator
>  GmbH & Co KG           | Birkenweg 14a       tel +49-6151-88008-0
>  Engineering TA&S       | D-64295 Darmstadt   fax +49-6151-88008-832
> -------------------------------------------------------------------------

-- 
Joshua Warchol
UNIX Systems Administrator
DSL.net

_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to