SpamAnalyzer Class

Class which allows applications to detect spam e-mails with self-learning Bayesian filter.
Inheritance Hierarchy
SystemObject
  Aspose.Email.AntiSpamSpamAnalyzer

Namespace:  Aspose.Email.AntiSpam
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.6
Syntax
public class SpamAnalyzer

The SpamAnalyzer type exposes the following members.

Constructors
  NameDescription
Public methodSpamAnalyzer
Initialize a new instance of the SpamAnalyzer class.
Public methodSpamAnalyzer(Stream)
Initialize a new instance of the SpamAnalyzer class.
Public methodSpamAnalyzer(String)
Initialize a new instance of the SpamAnalyzer class.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodLoadDatabase(Stream)
Loads Bayesian database from stream.
Public methodLoadDatabase(String)
Loads Bayesian database from file.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodReset
Clears all statistics (Bayesian database).
Public methodSaveDatabase(Stream)
Saves the Bayesian database to stream.
Public methodSaveDatabase(String)
Saves the Bayesian database to file.
Public methodTest
Analyses the message and returns the probability of the message being spam.
Public methodToString (Inherited from Object.)
Public methodTrainFilter(String, Boolean)
Learns from the specified string as from spam or non-spam source.
Public methodTrainFilter(MailMessage, Boolean)
Learns from the specified message as from spam or non-spam source.
Public methodTrainFilter(MailMessage, MailMessage)
Learns from the specified messages as from spam or non-spam source.
See Also