From: "Michael DeSimone" <michael(_at_)desimone(_dot_)net>
I finally have most of what I want to do working. However, I can't have
anyone from my domain on the list as it creates a mail loop.
How can I fix this? I also would like to alter the Subject line so that
[listname] is the first thing in the subject line.
The last thing you're asking about has been covered extensively
in the list archives, which see. They support searches.
You'll be piping formail, which is part of the procmail package.
#Real list
:0 H
* ^To:.*listname
! `cat listfile`
listfile is just a list of email addresses, one per line.
You need an "X-Loop:" header to keep mail loops away. See
the man pages (man procmailrc, man procmailex, man procmail),
the archives, etc. Also formail, here.
You should also look at smartlist, coded by the creator of
procmail and available at procmail.org.
--
dman
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail