SpamAnalyzerTrainFilter Method (MailMessage, MailMessage)

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

Namespace:  Aspose.Email.AntiSpam
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.3
Syntax
public void TrainFilter(
	MailMessage[] ham,
	MailMessage[] spam
)

Parameters

ham
Type: Aspose.EmailMailMessage
The array of MailMessage objects that is non-spam for training the Bayesian filter.
spam
Type: Aspose.EmailMailMessage
The array of MailMessage objects that is spam for training the Bayesian filter.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf ham or spam is null.
See Also