procmail
[Top] [All Lists]

Re: Distributing mail for a group

1996-12-31 07:43:08
At 07:19 AM 12/31/96 -0500, James V. Di Toro III wrote:
On Mon, 30 Dec 1996, Chuck Kennedy wrote:

:0 c
* ^TOmarco
! mpact(_at_)aa(_dot_)net

My thought is to forward the message with the subject changed to "Mail for
Marco" and add an additional line to the body with the original subject.
I'm not sure how I would do that.

      Actually it's not all that hard.  you just need to add one line
for the recipies, like this:

:0 c
* ^TOmarco
| formail -i "Subject: Mail for Marco"
! mpact(_at_)aa(_dot_)net

      That will change the subject to "Mail for whoever" and change the
current subject field to a field called Old-Subject:.

I don't think that will quite work, as it has two delivery actions
(only the first works).

Try something like this (untested):

:0 c
* ^TOmarco
| formail -i "Subject: Mail for Marco" | $SENDMAIL -oi -t 
mpact(_at_)aa(_dot_)net

Happy New Year,
Stan Ryckman (stanr(_at_)tiac(_dot_)net)

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