On Sat, Apr 11, 1998 at 11:03:46PM -0400, David S. Jackson wrote:
One of the mailing lists I subscribe to has changed mail servers, and
the old mail server won't die. So, I get duplicate mail from two
servers for the same list. I was using the man procmailex example:
:0 Wh: msgid.lock
| formail -D 8192 msgid.cache
which was working perfectly until someone else on the list mentioned I
had the *old* server's To: address in my reply. So what I need to do
is add a condition that only emails coming from "@wtic.net" may be
deleted. How could I modify this recipe so that only the @wtic.net
messages would be vanquished?
It's not sensible to modify the above recipe. A simple solution would be to
put a recipe before this one deleting the messages from the old host:
:0
* ^(Resent-)*From:(_dot_)*(_at_)wtic(_dot_)net
/dev/null
--Werner