SpamAnalyzerTrainFilter Method (String, Boolean)

Learns from the specified string 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(
	string text,
	bool isSpam
)

Parameters

text
Type: SystemString
A string value to train the Bayesian filter.
isSpam
Type: SystemBoolean
True if specified text is a spam; false if it's a legitimate text.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf text is null.
See Also