On Fri, 25 Aug 2000, philip olson wrote:
Hi all-
I've searched and searched and found simular requests and answers but
cannot (feeling slightly stupid) figure out how to do this simple task :
Desire : Create a Simple mailing list
Example :
Someone sends to this address :
mylistname(_at_)mydomain(_dot_)com
That message then forwards, via BCC (or whatever), to other addresses in a
list, such as in friends.txt (or hardcoded in .procmail) :
friend1(_at_)them(_dot_)com
friend2(_at_)something(_dot_)com
friend3(_at_)anotherthing(_dot_)com
I am just now learning regular expressions and am familiar with PHP (not
perl). ALL help welcome and appreciated.
I'll also want to send a copy to a folder which I'll deal with later.
I know all this is possible but cannot figure it out. Knowing how to do
this (with good explanation) will help me accomplish other things I am
sure. My list is small btw, just a few people. Again, thanks in advance.
Try this (untested!). Also, check out the man pages (man procmail
procmailrc procmailex) and the faqs and tips linked to from the
procmail.org webpage to learn more.
:0
* ^TO_mylistname(_at_)mydomain\(_dot_)com
! `cat /path/to/friends.txt`
:0A
mailinglist
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail