I’ve seen this asked a few times here and there. So here it is.
Open Mozilla Mail&News and go to the “Tools” menu and select “Message Filters…”. You should be brought a window llke this:
Select the email address you wish to filter for, and press the “New” button to the right. You will then see a window like this:
Give the filter a name, such as “SpamAssassin”, or “spamfilter”, or whatever floats your boat and helps you sleep at night. Then pull down the first menu and select “customize” on the very bottom. We need to teach Mozilla about Spam Assassin’s special header for detecting spam.
Every email contains what are known as “headers”, these are a few lines of what most consider “jiberish”, but contain routing information, and some tagging by various systems when sending/receiving email. Lets teach it to recognize the “X-Spam-Flag” header, created by spamassassin. In the window shown below, enter the header, and create it as shown:
Say “OK”, and close that. Now we are back to that Filter Rules page. Go to the first column again, and pull down. Now you will see our new header we added on the end of the list. Select it. That’s what we want to check. It’s spam if it’s set to “Yes”, so make the rule say “X-Spam-Status” “contains” “Yes”.
Then on the bottom half of the window, we need to tell Mozilla what to do with all mail that matches the rule. I like to have it sent to a junk folder (as shown below). You can customize any of those below to do what you want. Delete (not recommended, since you can’t check to ensure it’s spam), move, notify, mark, etc.).
That’s it. Not too hard. The above is mostly images, and much more detailed than most really need. Just take your time.