SpamFilter

Base interface for all spam filters.

Members

Functions

applySettings
void applySettings(Json settings)

Applies the given JSON settings object (filter specific format).

classify
void classify(AntispamMessage art, bool spam, bool unclassify)

Manually classifies a message as spam/ham to feed learning routines.

determineAsyncSpamStatus
SpamAction determineAsyncSpamStatus(AntispamMessage )

Performs I/O heavy spam detection (e.g. using an external web service)

determineImmediateSpamStatus
SpamAction determineImmediateSpamStatus(AntispamMessage )

Performs immediate spam detection.

getSettings
Json getSettings()

Returns a JSON object that contains all filter specific settings.

resetClassification
void resetClassification()

Clears any learned classification information.

Properties

id
string id [@property getter]

Unique string identifier for the filter type

Meta