Class IMP_Quota_Maildir
Implementation of the Quota API for servers using Maildir++ quota files on
the local filesystem.
Copyright 2007-2012 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (GPL). If you
did not receive this file, see http://www.horde.org/licenses/gpl.
-
IMP_Quota_Base
-
IMP_Quota_Maildir
Methods summary
public
|
#
__construct( array $params = array() )
Constructor.
Parameters
- $params
- Parameters:
<pre><span class="php-quote">'msg_count'</span> - (boolean) Display information on the message limit rather
than the storage limit?
<span class="php-keyword1">DEFAULT</span>: <span class="php-keyword1">false</span>
<span class="php-quote">'path'</span> - (string) The path to the user<span class="php-quote">'s Maildir directory. You may use
the two-character sequence "~U" to represent the user'</span>s
account name, <span class="php-keyword1">and</span> the actual username will be substituted in
that location.
E.g., <span class="php-quote">'/home/~U/Maildir/'</span> <span class="php-keyword1">or</span> <span class="php-quote">'/var/mail/~U/Maildir/'</span>
<span class="php-keyword1">DEFAULT</span>: <span class="php-quote">''</span></pre>
Overrides
|
public
array
|
#
getQuota( )
Returns quota information (used/allocated), in bytes.
Returns quota information (used/allocated), in bytes.
Returns
array An array with the following keys:
'limit' = Maximum quota allowed.
'usage' = Currently used portion of quota (in bytes).
Throws
|