6.0.0-beta1
7/7/25

[#6322] quota using a generic function [patch]
Summary quota using a generic function [patch]
Queue IMP
Queue Version 4.2-RC2
Type Enhancement
State Resolved
Priority 1. Low
Owners chuck (at) horde (dot) org
Requester Michael.Redinger (at) uibk (dot) ac (dot) at
Created 02/26/2008 (6341 days ago)
Due
Updated 02/29/2008 (6338 days ago)
Assigned
Resolved 02/29/2008 (6338 days ago)
Milestone
Patch No

History
02/29/2008 09:22:54 PM Chuck Hagenbuch Comment #2
Assigned to Chuck Hagenbuch
State ⇒ Resolved
Reply to this comment
Cleaned up a bit, renamed to the "hook" driver since that's what it is 
:), and committed. Thanks!
02/26/2008 07:30:36 AM Michael (dot) Redinger (at) uibk (dot) ac (dot) at Comment #1
State ⇒ New
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ quota using a generic function [patch]
Queue ⇒ IMP
New Attachment: imp-quota-function.tar.gz Download
Reply to this comment
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.

Saved Queries