4 messages in net.sourceforge.lists.courier-usersRe: [courier-users] IMAP Admin User
FromSent OnAttachments
Joshua E WarcholDec 10, 2001 11:13 am 
Sam VarshavchikDec 10, 2001 2:55 pm 
Oliver BlasnikDec 10, 2001 3:14 pm 
Joshua E WarcholDec 11, 2001 5:18 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] IMAP Admin UserActions...
From:Joshua E Warchol (jwar@dsl.net)
Date:Dec 11, 2001 5:18:41 am
List:net.sourceforge.lists.courier-users

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