On Tue, May 28, 2002 at 10:40:39PM -0400, Daniel Barclay wrote: | Can procmail modify a message header field (e.g., prepend "spam:" to | the subject field value)? Can it add a header field?
Yes (more or less, at least). | (The procmailrc manual page leaves quite a bit to be desired.) It does. | I can filter mail via .forward in my shell account on my ISP's machine, | and then download via POP using Netscape. I'd like to use .procmail to | detect suspected spam and then put something in the message header that | I can use in Netscape (4.x) filters to filter the messages. Install SpamAssassin. Then use this as your first recipe : :0fw | spamassassin It will filter all mail through SA, and SA will tag the spam messages for you. After it you can use :0 * ^X-Spam-Status: Yes caughtspam/ to stuff all flagged spam into the "caughtspam" folder. -D -- The Consultant's Curse: When the customer has beaten upon you long enough, give him what he asks for, instead of what he needs. This is very strong medicine, and is normally only required once. GnuPG key : http://dman.ddts.net/~dman/public_key.gpg
pgpmovvrbvliq.pgp
Description: PGP signature