[imp] IMP Head Quota display problem with Courier driver

Fred Ho fkho at fredho.net
Mon Aug 9 07:21:26 PDT 2004


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.

Has anyone noticed this when using Courier IMAP?



Regards,
Fred







More information about the imp mailing list