[ 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/ -> Filter.php (sommaire)

(pas de description)

Poids: 139 lignes (5 kb)
Inclus ou requis: 6 fois
Référencé: 0 fois
Nécessite: 2 fichiers
 lib/MIME/Headers.php
 lib/IMAP.php

Définit 1 class

IMP_Filter:: (5 méthodes):
  singleton()
  filter()
  blacklistMessage()
  whitelistMessage()
  _processBWlist()


Classe: IMP_Filter  - X-Ref

The IMP_Filter:: class contains all functions related to handling
filtering messages in IMP.

For full use, the following Horde API calls should be defined
(These API methods are not defined in IMP):
mail/applyFilters
mail/canApplyFilters
mail/showFilters
mail/blacklistFrom
mail/showBlacklist
mail/whitelistFrom
mail/showWhitelist

$Horde: imp/lib/Filter.php,v 1.56.10.11 2007/03/02 20:50:47 slusarz Exp $

Copyright 2002-2007 Michael Slusarz <slusarz@bigworm.colorado.edu>

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

singleton()   X-Ref
Returns a reference to the global IMP_Filter object, only creating it
if it doesn't already exist. This ensures that only one IMP_Filter
instance is instantiated for any given session.

This method must be invoked as:<code>
$imp_filter = &IMP_Filter::singleton();
</code>

return: IMP_Filter  The IMP_Filter instance.

filter($mbox)   X-Ref
Runs the filters if they are able to be applied manually.

param: string $mbox  The mailbox to apply the filters to.

blacklistMessage($indices)   X-Ref
Adds the From address from the message(s) to the blacklist.

param: array $indices  See IMP::parseIndicesList().

whitelistMessage($indices)   X-Ref
Adds the From address from the message(s) to the whitelist.

param: array $indices  See IMP::parseIndicesList().

_processBWlist($indices, $descrip, $reg1, $reg2)   X-Ref
Internal function to handle adding addresses to [black|white]list.

param: array  $indices  See IMP::parseIndicesList().
param: string $descrip  The textual description to use.
param: string $reg1     The name of the mail/ registry call to use for
param: string $reg2     The name of the mail/ registry call to use for



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