SpamAnalyzer

SpamAnalyzer class

Class which allows applications to detect spam e-mails with self-learning Bayesian filter.

Constructors

NameDescription
SpamAnalyzer (3 overloads)Initialize a new instance of the Aspose::Email::AntiSpam::SpamAnalyzer class.

Methods

NameDescription
get_FilterFor testing only.
LoadDatabase (2 overloads)Loads Bayesian database from stream.
ResetClears all statistics (Bayesian database).
SaveDatabase (2 overloads)Saves the Bayesian database to stream.
TestAnalyses the message and returns the probability of the message being spam.
TrainFilter (3 overloads)Learns from the specified messages as from spam or non-spam source.