Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

check::Checker Class Reference

#include <Checker.hh>

List of all members.

Public Member Functions

 Checker (pref::Preferences *)
 ~Checker ()
int duplicates (msg::Header *, vector< string > *)
 Returns 0 if message was a duplicate, 1 otherwise.

int lineLength (msg::Header *)
 Returns 0 if line length exceeded, 1 otherwise.

int friends (msg::Header *)
 Returns 0 if MAXSIZE_ALLOW was exceeded, 1 if message is a friend to pass filters, 2 if message could not be categorised.

int size (msg::Header *)
 Returns 0 if message was too large, 1 otherwise.

int filters (msg::Header *)
 Returns 0 if message was spam, 1 if message was spam after normalisation, 2 otherwise.

int negFilters (msg::Header *)
 Returns 0 if message was spam, 1 otherwise.

int scores (msg::Header *)
 Returns the SPAM-score this message achieved.

int negScores (msg::Header *)
 Returns the SPAM-score this message achieved with the negative filters.

int maxSizeScore (msg::Header *)
 Returns the SPAM-score this message achieved with MAXSIZE_SCORE.

void cleanMatchingStrings (void)
 Delete matching strings.

void cleanMatchingFilters (void)
 Delete matching filters/scores.

void setMatchingString (const string)
 Sets/adds matching string.

vector< string > * getMatchingStrings (void)
 Returns the header sub-string that was matched to a spam filter rule (see matchingFilter).

void setMatchingFilter (const string)
 Sets/adds matching filter.

vector< string > * getMatchingFilters (void)
 Returns the filters that matched a header sub-string (see matchingString).


Constructor & Destructor Documentation

check::Checker::Checker (  pref::Preferences *   ) 
 

check::Checker::~Checker (   ) 
 


Member Function Documentation

void check::Checker::cleanMatchingFilters (  void   ) 
 

Delete matching filters/scores.

void check::Checker::cleanMatchingStrings (  void   ) 
 

Delete matching strings.

int check::Checker::duplicates (  msg::Header *  ,
vector< string > * 
) 
 

Returns 0 if message was a duplicate, 1 otherwise.

int check::Checker::filters (  msg::Header *   ) 
 

Returns 0 if message was spam, 1 if message was spam after normalisation, 2 otherwise.

int check::Checker::friends (  msg::Header *   ) 
 

Returns 0 if MAXSIZE_ALLOW was exceeded, 1 if message is a friend to pass filters, 2 if message could not be categorised.

vector< string > * check::Checker::getMatchingFilters (  void   ) 
 

Returns the filters that matched a header sub-string (see matchingString).

vector< string > * check::Checker::getMatchingStrings (  void   ) 
 

Returns the header sub-string that was matched to a spam filter rule (see matchingFilter).

int check::Checker::lineLength (  msg::Header *   ) 
 

Returns 0 if line length exceeded, 1 otherwise.

int check::Checker::maxSizeScore (  msg::Header *   ) 
 

Returns the SPAM-score this message achieved with MAXSIZE_SCORE.

int check::Checker::negFilters (  msg::Header *   ) 
 

Returns 0 if message was spam, 1 otherwise.

int check::Checker::negScores (  msg::Header *   ) 
 

Returns the SPAM-score this message achieved with the negative filters.

int check::Checker::scores (  msg::Header *   ) 
 

Returns the SPAM-score this message achieved.

void check::Checker::setMatchingFilter (  const  string  ) 
 

Sets/adds matching filter.

void check::Checker::setMatchingString (  const  string  ) 
 

Sets/adds matching string.

int check::Checker::size (  msg::Header *   ) 
 

Returns 0 if message was too large, 1 otherwise.


The documentation for this class was generated from the following files:
Generated on Sat Feb 14 18:53:14 2004 for mailfilter by doxygen 1.3.5