Re: A "subject" rule for procmail

Peter Edstrom
2003-09-14T16:02:47Z

> With bmf, does it search a spam folder and learn from what you put into
> it? The thing is I delete good e-mail after I've finished reading it if
> there's no further use for it but just because I deleted that e-mail
> doesn't make it properly spam.

This is kinda how it works:

When your mail is sent to procmail, procmail pipes it to the bmf program
to filter it. Bmf is looking at the headers as well as the message, and
compares it with keywords given in a database. If the mail is spam, a
new header 'X-Spam-Status' is set to 'Yes', and then the mail is
returned to procmail. Now you can make procmail check the X-Spam-Status,
and if spam it can either put the mail in a specific spam mailbox
(recommended), or to /dev/null.

If bmf misses a spam mail, you can mark the mail as spam which updates
the badlist-database. (This is very easy to do with eg. mutt, where you
can bind for instance F12 to do this). Similarly, if bmf happen to
filter a mail which isn't spam, you can remove it from the database (in
eg. mutt you can do this with for instance F11).

If you just delete a mail, it will not be marked as spam.

If there's something you don't understand, please let me know. I'm in a
little hurry now - I'm supposed to cook potatoes. ;-)

Hope this helps!
/Peter