Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

To have spamassasin working correctly you need to train it: feeding it ham and spam messages.

But what happens when you feed it spam messages which have already been processed?

And by that I mean: they've got a [SPAM] text in their subject, it contains the analysis detail of why it's considered as spam, and the actual spam message is sent as an attachment.

Does sa-learn know how to handle that, or not?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

If you run sa-learn on messages that SA has already marked as spam, it will learn from them whatever you told it (--spam or --ham), but first, it will remove the SA headers that were initially added to the message.

This is needed because you want to be able to train SA to consider something hammy that it's already marked as spam, in case of false positives, and vice-versa.

Note that sa-learn places its own marking on messages that it learns from, and will not learn from them again unless you explicitly tell it to --forget messages. However, if you tell it to learn something as spammy that you previously learned as hammy, or vice versa (e.g. you misfiled it), it will figure this out and automatically forget the previous run.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.