procmail
[Top] [All Lists]

Re: Implementing a Mailing List via procmail

1997-06-22 09:18:00
Paul O Bartlett <pobart(_at_)access(_dot_)digex(_dot_)net> wrote on
Sun, 22 Jun 1997 10:44:16 -0400 (EDT) in
Message-ID: <Pine(_dot_)SUN(_dot_)3(_dot_)96(_dot_)970622103821(_dot_)7089A-100000(_at_)access1(_dot_)digex(_dot_)net>

> I do not need such a recipe at the moment, but I might. Roy
> Rapoport did not say just how elaborate a setup he needs.

I suppose you would have to check a header, or (better) the "To" line (if you can get an alias setup).

Something like this:

MEMBERS="john(_at_)where(_dot_)com joe(_at_)smoe(_dot_)org jane(_at_)tarzan(_dot_)gov"

# untested OTTOMH!
:0
* ^Subject: OURLIST
* !^X-Loop: ourlist
|(formail -I "X-Loop: ourlist) | $SENDMAIL $MEMBERS

:0
*TOourlist
* !^X-Loop: ourlist
|(formail -I "X-Loop: ourlist) | $SENDMAIL $MEMBERS

That might be a place to start.

I think this does relatively the same thing...

:0
* ^Subject: OURLIST
* !^X-Loop: ourlist
{

:0fhw
|formail -I "X-Loop: ourlist"


:0
! $MEMBERS

}


TjL


--
TjL <luomat(_at_)peak(_dot_)org> / http://www.peak.org/~luomat/next/
NeXT bookmarks: http://www.peak.org/~luomat/next/bookmarks.html
*** Starting July 2nd I will be taking Hebrew. Email and Usenet
response time will be noticeably slower. ***


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