procmail
[Top] [All Lists]

piping to a distribution list

1996-12-06 22:22:49
I am using procmail to forward my mail to another account, but some mail
coming in needs to be sent to a distribution list. The signal for a
particular message to be sent to a distribution list is that the email
comes to charles+phil(_at_)yakko(_dot_)cs(_dot_)wmich(_dot_)edu instead of
charles(_at_)yakko(_dot_)cs(_dot_)wmich(_dot_)edu(_dot_)

I also want to adjust the reply-to address of these distributed messages
so they will automatically be returned to the list.

This part of my script currently reads:

--------------------------
:0
*
(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(_dot_)*phil(_dot_)*(_at_)(_dot_)*wmich(_dot_)edu(_dot_)*

{ :0 fhw  # this should adjust the reply-to address for philos members
   | formail -i "Reply-To: 
charles+philos(_at_)yakko(_dot_)cs(_dot_)wmich(_dot_)edu"


! send to distribution list

}
---------------------

The first condition I mostly copied out of the man, so that should be
ok. It is in the action section that I fall down. I think I have the
inserting ot the reply-to done right, but I have no idea how to send to
a distribution list.

I'd like to have a file external to procmail, like members.list, and
have that file be a list of email addresses, one per line, to which the
email needs to be sent. This would make the common adjustments to the
list easier.

Or maybe the is a better way to setup a private listserv like this?

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