[Tickets #6322] quota using a generic function [patch]

bugs at horde.org bugs at horde.org
Tue Feb 26 07:30:36 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=6322
-----------------------------------------------------------------------
 Ticket             | 6322
 Created By         | Michael.Redinger at uibk.ac.at
 Summary            | quota using a generic function [patch]
 Queue              | IMP
 Version            | 4.2-RC2
 Type               | Enhancement
 State              | New
 Priority           | 1. Low
 Milestone          | 
 Patch              | 
 Owners             | 
+New Attachment     | imp-quota-function.tar.gz
-----------------------------------------------------------------------


Michael.Redinger at uibk.ac.at (2008-02-26 02:30) wrote:

The drivers available for getting the user's quota did not work for me: we
do not have IMAP server quota support, the mail filesystems (and the users)
are not available on the local machine, there are no quota log files etc.

I therefore wrote a quick implementation of the quota API that calls a
generic function where I could do whatever I want.
I added that function to hooks.php and configured the servers to use the
new driver ('function').

I use this function to connect to the server using ssh (the sample
function requires the PEAR ssh2 module) and get the quota.

The archive contains one file imp/lib/Quota/function.php that needs to be
put in your IMP directory.
There are also two files - servers.php.quota and hooks.php.quota that show
how to use the driver.



More information about the bugs mailing list