MailBee.AntiSpam namespace provides BayesFilter class which allows applications to detect spam e-mails with self-learning Bayesian filter.
| Class | Description |
|---|---|
| BayesFilter |
Provides properties and methods for checking e-mails messages for spam probability and learning the filter from proven spam and non-spam messages. The filter uses the existing database of spam and non-spam messages to score new messages in the range of 0-100%. 0% corresponds to absolutely non-spam message, 100% corresponds to absolutely spam message. The key point is learning the filter: telling the filter which messages are spam or non-spam. This is called training the filter. Initially, while the database is empty, the filter has no existing messages which to compare with the message in question. Thus, the first task is to train the filter with several hundreds of typical spam and non-spam messages you usually get. This will increase the filter efficiency from zero to the suitable value. The training should, however, continue in the future to further improve the quality of spam recognition. The larger database is, the better spam/non-spam recognition is. The filter will operate correctly ONLY if it was trained with a good number of spam AND non-spam messages. You can train the filter using TrainFilter method. To score a message (determine if it's spam or not), use ScoreMessage method. |
| Enumeration | Description |
|---|---|
| BayesAlgorithm | Defines the available values for BayesFilter.Algorithm property to specify the algorithm which should be used to calculate spam score of e-mail messages. |