[imp] Quota with Dovecot

Jan Schneider jan at horde.org
Tue Feb 27 06:28:53 PST 2007


Zitat von Joseba Torre <joseba.torre at ehu.es>:

> Hi again,
>
> Even if I can't code in php, I've taken a look in the quota code in imp. As
> far as I've seen, the main diference between courier and cyrus is the error
> condition handling. The quota handling code is the same.
>
> So, I've tried to simulate all the possible scenarios with dovecot:
>
> 1. Quota set
>
> a03 getquotaroot INBOX
> * QUOTAROOT "INBOX" ""
> * QUOTA "" (STORAGE 56500 200000)
> a03 OK Getquotaroot completed.
>
> 2. Quota compiled in, but not set
>
> a02 getquotaroot INBOX
> * QUOTAROOT "INBOX" ""
> * BAD Internal quota error
> * QUOTA "" ()
> a02 OK Getquotaroot completed.
>
> 3. Quota not compiled in
>
> a02 getquotaroot INBOX
> a02 BAD Error in IMAP command GETQUOTAROOT: Unknown command.

The problem could be either in the imap_get_quotaroot() function of  
the imap extension, or in how we process the result of the function  
call. Remove the silence operator (@) in getQuota() and dump the  
$quota variable.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the imp mailing list