#include <Checker.hh>
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). |
|
|
|
|
|
Delete matching filters/scores.
|
|
Delete matching strings.
|
|
Returns 0 if message was a duplicate, 1 otherwise.
|
|
Returns 0 if message was spam, 1 if message was spam after normalisation, 2 otherwise.
|
|
Returns 0 if MAXSIZE_ALLOW was exceeded, 1 if message is a friend to pass filters, 2 if message could not be categorised.
|
|
Returns the filters that matched a header sub-string (see matchingString).
|
|
Returns the header sub-string that was matched to a spam filter rule (see matchingFilter).
|
|
Returns 0 if line length exceeded, 1 otherwise.
|
|
Returns the SPAM-score this message achieved with MAXSIZE_SCORE.
|
|
Returns 0 if message was spam, 1 otherwise.
|
|
Returns the SPAM-score this message achieved with the negative filters.
|
|
Returns the SPAM-score this message achieved.
|
|
Sets/adds matching filter.
|
|
Sets/adds matching string.
|
|
Returns 0 if message was too large, 1 otherwise.
|