One of the most powerful spam detection tools is the self-training iBayes algorithm. The application uses the algorithm to decide, which status should be assigned to a message based on the phrases it contains. Prior to work beginning, sample strings of useful and spam mail should be submitted to the iBayes algorithm, i.e. it should be trained .
There are several approaches to training Anti-Spam: