TrainFilter

TrainFilter (1 of 3)

Learns from the specified messages as from spam or non-spam source.

Returns: void Aspose::Email::AntiSpam::

TrainFilter(System::ArrayPtr< System::SharedPtr < MailMessage >> ham, System::ArrayPtr< System::SharedPtr < MailMessage >> spam)
ParameterDescription
hamThe array of MailMessage objects that is non-spam for training the Bayesian filter.
spamThe array of MailMessage objects that is spam for training the Bayesian filter.

TrainFilter (2 of 3)

Learns from the specified message as from spam or non-spam source.

Returns: void Aspose::Email::AntiSpam::

TrainFilter(System::SharedPtr < MailMessage > message, bool isSpam)
ParameterDescription
messageA reference to the MailMessage object representing the message to train the Bayesian filter.
isSpamTrue if the message is a spam; false if it’s a legitimate message.

TrainFilter (3 of 3)

Learns from the specified string as from spam or non-spam source.

Returns: void Aspose::Email::AntiSpam::

TrainFilter(System::String text, bool isSpam)
ParameterDescription
textA string value to train the Bayesian filter.
isSpamTrue if specified text is a spam; false if it’s a legitimate text.