[ Index ]
 

Code source de IMP H3 (4.1.5)

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/lib/Quota/ -> logfile.php (sommaire)

(pas de description)

Poids: 91 lignes (3 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

IMP_Quota_logfile:: (2 méthodes):
  IMP_Quota_logfile()
  getQuota()


Classe: IMP_Quota_logfile  - X-Ref

Implementation of the Quota API for servers where IMAP Quota is not
supported, but it appears in the servers messages log for the IMAP
server.

Requires the following parameter settings in imp/servers.php:
'quota' => array(
'driver' => 'logfile',
'params' => array(
'logfile' => '/path/to/log/file',
'taillines' => 10,
'FTPmail'   => 'FTP',
'beginocc'  => 'usage = ',
'midocc'    => ' of ',
'endocc'    => ' bytes'
)
);

logfile    --  The path/to/filename of the log file to use.
taillines  --  The number of lines to look at in the tail of the logfile.
FTPmail    --  If you want to show what FTP space is available (IMAP folder)
or what mail space is available (INBOX).
Defines the search string to username:
FTPmail to identify the line with QUOTA info.
beginocc   --  String that designates the characters before the usage
number.
midocc     --  String between usage and total storage space.
endocc     --  String after the storage number.

$Horde: imp/lib/Quota/logfile.php,v 1.5.10.4 2005/10/18 12:13:36 jan Exp $

See the enclosed file COPYING for license information (GPL). If you
did not receive this file, see http://www.fsf.org/copyleft/gpl.html.

IMP_Quota_logfile($params = array()   X-Ref
Constructor

param: array $params  Hash containing connection parameters.

getQuota()   X-Ref
Get quota information (used/allocated), in bytes.

return: mixed  An associative array.



Généré le : Thu Nov 29 12:30:07 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics