[imp] Fwd: [PHP-DEV] IMAP quota functionality

Michael Cochrane mike@graftonhall.co.nz
Mon, 22 Jul 2002 12:10:46 +0100


Quoting Jan Schneider <jan@horde.org>:

> This might be interesting for anyone having problems with imap quotas.
> Please send any feedback directly to Dan.
> 

On another quota related issue... i'm currently creating and Quota API for IMP
with courier, cyrus and mdaemon implementations for retrieving the quota. This
will allow the quota source to be defined in servers.php where it should be.
thinking something like:
$servers['cyrus'] = array(
    'name' => 'Cyrus IMAP Server',
    'server' => 'cyrus.example.com',
    'protocol' => 'imap/notls',
    'port' => 143,
    'folders' => '',
    'namespace' => 'INBOX.',
    'maildomain' => 'example.com',
    'realm' => 'example.com',
    'preferred' => ''
    'quota' => array(
        'driver' => 'cyrus', 
        'params' => array(
            'login' => 'admin login',
            'password' => 'admin password'
        );
    );
);

The current hook is only really practical if you only have one mail server to
worry about. else if gets really messy when you want quotas from multiple mail
servers running different software.

Interest, comments, suggestions welcomed.

- Mike :-)

-- 
Propaganda is a soft weapon; hold it in your hands too long, and it will move
about like a snake, and strike the other way. - Jean Anouilh (1910-1987)
--French playwright
signature from Siglets.com

-------------------------------------------------------------------------
This mail sent from Mike's CVS HEAD install of IMP: http://horde.org/imp/