procmail
[Top] [All Lists]

Re: Formail problems

1999-03-30 23:11:24
On Wed, 31 Mar 1999 00:23:03 -0500 (EST),
jonathan(_at_)leto(_dot_)net wrote:
:0
* ^Subject:.*(ADV|adv)
|formail -A "X-Spam-Death: Truthful Subject"  

You need a filtering flag on this recipe (and probably also h and w,
for a grand total of :0fhw) -- otherwise, Procmail will simply
"deliver" to a formail which doesn't save the message anywhere, and
you lose the message.

You probably also want to tighten up that regular expression a little
bit; and note that Procmail is not case-sensitive unless you
specifically ask for it.

    :0fhw
    * ^Subject:\<*adv\>
    | formail -A "X-Spam-Death: Truthful Subject"

Hope this helps,

/* era */

-- 
.obBotBait: It shouldn't even matter whether     <http://www.iki.fi/era/>
I am a resident of the state of Washington. <http://members.xoom.com/procmail/>
 * Sign the European spam petition! <http://www.politik-digital.de/spam/en/> *

<Prev in Thread] Current Thread [Next in Thread>