[imp] IMP Head Quota display problem with Courier driver

Jan Schneider jan at horde.org
Tue Aug 10 02:37:54 PDT 2004


Zitat von Fred Ho <fkho at fredho.net>:

> Hi,
>    I am currently testing Horde and IMP Head-03-08-04 version. When setting
> quota in imp/config/servers.php as below:
>
> $servers['imap'] = array(
>     'name' => 'Courier IMAP Server',
>     'server' => 'localhost',
>     'hordeauth' => false,
>     'protocol' => 'imap/notls',
>     'port' => 143,
>     'folders' => 'INBOX.',
>     'namespace' => '',
>     'maildomain' => '$HTTP_HOST',
>     'smtphost' => 'localhost',
>     'realm' => '',
>     'preferred' => '',
>     'dotfiles' => false,
>     'quota' => array(
>         'driver' => 'courier',
>         'params' => array()
>     ),
>     'hierarchies' => array()
> );
>
> The quota is always displayed as "No LIMIT". After performing
> var_dump($quota) on imp/lib/Quota/courier.php, the result of $quota was
> array(1) { ["MESSAGE"]=>  array(2) { ["usage"]=>  int(21700) ["limit"]=>
> int(500000) } } int(500000)
>
> So, Courier (I am using courier suite 0.46.0 integrated mail server)
> returned from imap_get_quotaroot($_SESSION['imp']['stream'], 'INBOX')
> as an array of an array of 2 elements with the 2nd array containing the
> usage and limit.
>
> Modifying the referencing of $quota['limit'] to $quota['MESSAGE']['limit']
> and $quota['usage'] to $quota['MESSAGE']['usage'] reviewed the Quota
> status: string.

No. IMP is currently displaying the storage quota (in bytes) not the message
quota.

Jan.

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


More information about the imp mailing list