<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>quota using a generic function [patch]</title> 
  <pubDate>Thu, 09 Apr 2026 23:53:29 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/6322</link> 
  <atom:link rel="self" type="application/rss+xml" title="quota using a generic function [patch]" href="https://bugs.horde.org/ticket/6322/rss" /> 
  <description>quota using a generic function [patch]</description> 
 
   
   
  <item> 
   <title>The drivers available for getting the user&#039;s quota did not w</title> 
   <description>The drivers available for getting the user&#039;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 (&#039;function&#039;).



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.</description> 
   <pubDate>Tue, 26 Feb 2008 07:30:36 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6322#t43078</link> 
  </item> 
   
  <item> 
   <title>Cleaned up a bit, renamed to the &quot;hook&quot; driver since that&#039;s </title> 
   <description>Cleaned up a bit, renamed to the &quot;hook&quot; driver since that&#039;s what it is :), and committed. Thanks!</description> 
   <pubDate>Fri, 29 Feb 2008 21:22:54 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6322#t43286</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
