SpamAnalyzerTrainFilter Method (MailMessage, Boolean)

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

Namespace:  Aspose.Email.AntiSpam
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntax
public void TrainFilter(
	MailMessage message,
	bool isSpam
)

Parameters

message
Type: Aspose.EmailMailMessage
A reference to the MailMessage object representing the message to train the Bayesian filter.
isSpam
Type: SystemBoolean
True if the message is a spam; false if it's a legitimate message.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf message is null.
See Also