Author: Ken Hooper <bighouse(_at_)type2(_dot_)com>
Original-Date: Thu, 25 Sep 1997 18:38:14 -0600
Message-ID:
<l03102828b050b3493f22(_at_)[207(_dot_)53(_dot_)22(_dot_)223]>
:0
* ^TO(_dot_)*list(_at_)mydomain(_dot_)org
{
:0 c:
list
:0
| (formail -A "Reply-To: list(_at_)mydomain(_dot_)org" \
-A "X-Mailing-List: Mailing List @mydomain.org") \
| $SENDMAIL -oi user1(_at_)somedomain(_dot_)com \
user2(_at_)someotherdomain(_dot_)com \
user3(_at_)yetanotherdomain(_dot_)com
}
[snip]
I don't understand what the second recipe does, are you writing to a
lockfile named list? You don't need a lockfile, you aren't writing
anything.
Nope, he is writing to a *mailbox* named 'list' and he does need a lockfile
I think I'd probably do it this way (easier to read, for me at least):
:0
* ^FROM_DAEMON
{
:0fhw
| formail -A "Reply-To: list(_at_)mydomain(_dot_)org" \
-I"Precedence: list" \
-A"X-Mailing-List: Mailing List @mydomain.org"
:0a
! user1(_at_)somedomain(_dot_)com \
user2(_at_)someotherdomain(_dot_)com \
user3(_at_)yetanotherdomain(_dot_)com
}
actually I'd probably do something with a list with the members and check
from From line to make sure it was one of them and then use that list to send
to... and make sure I had set LINEBUF high enough
TjL