[imp] Quotas and courier imap server
Fred Ho
fkho at fredho.net
Thu Dec 23 01:08:25 PST 2004
Hi,
I am using the Courier suite version 0.47 on Red Hat with
userdb virtual users setup. In order to get quota display on IMP v4 RC3, I
have the following settings in horde/imp/config/servers.php:
$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()
);
In addition, I modified the file horde/imp/lib/Quota/courier.php
to change the line as:
if (!empty($quota['MESSAGE']['limit'])) {
return array('usage' => $quota['MESSAGE']['usage'] * 1024,
'limit' => $quota['MESSAGE']['limit'] * 1024);
where I put in ['MESSAGE'] array since I am not using Linux system
quota and vardump reviewed Courier returned double array.
That should do. Note that I authenticated using IMP directly. So, YMMV
in the setup for servers.php.
Regards,
Fred
Quoting Ivars Stivriòð <ivars at kraslava.lv>:
| 1)What steps is needed to set up quota display in IMP?
|
| I seen only some config in servers.php, but cant solve what exactly i
| must
| write to get it up and running...
|
| I use snapshoot on horde/imp Courier-imap/postfix/mysql Do I have to put
| in
| servers.php something like this?
|
| $servers['imap'] = array(
| 'name' => 'Some imap server',
| 'server' => 'imap.server.com',
| // 'hordeauth' => false,
| 'hordeauth' => full,
| 'protocol' => 'imap/notls',
| 'port' => 143,
| 'folders' => 'INBOX.',
| 'namespace' => '',
| 'maildomain' => 'server.com',
| 'smtphost' => 'smtp.server.com',
| 'realm' => '',
| 'preferred' => '',
| 'dotfiles' => false,
| 'hierarchies' => array()
| 'quota' => array(
| 'driver' => 'courier',
| 'params' => array(
| 'login' => '???',
| 'password' => '???',
| 'userhierarchy' => 'user.',
| 'protocol' => 'imap',
| 'hostspec' => 'localhost',
| 'port' => 143
| )
| )
| );
|
| Or maby I need to change other files too?
|
|
| --
| IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
| Frequently Asked Questions: http://horde.org/faq/
| To unsubscribe, mail: imp-unsubscribe at lists.horde.org
|
More information about the imp
mailing list