procmail
[Top] [All Lists]

filtering recipe

1999-03-08 15:13:52
Hello everyone,

I am new to Procmail and am attempting my first recipe (which I hope to
build on as I go).  What I wanted it to do is stop reception of duplicate
messages from cross postings on lists I am on and if I get something from
anybody at usa.net to cc root and postmaster at that site but also delete
it so I dont get spammed with the message (actually multiple messages for
some bizarre reason somebody glommed all the users from my box [I dunno
how that sort of thing is achieved] and now I just get mail from usa.net
over and over again about stuff I don't really care about).  Here is the
recipe, as it stands now it kills all mail that comes in, not just from
usa.net.  I am missing something about the nuance of how to achieve what I
want to do. (I also get cc-ed on a To: usa.net address as well)  In the
future I will want to add new sites/addresses as I want to filter out new
ones based on site names.

:0 Wh: msgid.lock
| formail -D 8192 msgid.cache 

:0 ^From.*usa.net

:0
* ^To.*usa.net
{
   :0 c
   ! root(_at_)usa(_dot_)net
   ! postmaster(_at_)usa(_dot_)net

}

/dev/null



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