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(in ref AntispamMessage art, bool spam, bool unclassify = false)

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

determineAsyncSpamStatus
SpamAction determineAsyncSpamStatus(in ref AntispamMessage)

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

determineImmediateSpamStatus
SpamAction determineImmediateSpamStatus(in ref 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