On Tue, Oct 16, 2001 at 03:59:09PM +0100, Jane S wrote:
I am using procmail to set up a system whereby a group of us can
mail each other using a single address. I'm using a .procmailrc as
below:
:0
* ^(Cc|To)(_dot_)*all(_at_)mydomain(_dot_)com
! js10016(_at_)hermes(_dot_)cam(_dot_)ac(_dot_)uk address2(_at_)foo(_dot_)com
etc
:0
* ^(Cc|To)(_dot_)*contact(_at_)mydomain(_dot_)com
! js10016(_at_)hermes(_dot_)cam(_dot_)ac(_dot_)uk
I would like to add a reply-to line to the forwarded messages, so
that replies go to the group address (here, all(_at_)mydomain(_dot_)com).
GROUP='js10016(_at_)hermes(_dot_)cam(_dot_)ac(_dot_)uk
address2(_at_)foo(_dot_)com etc'
:0
* ^TO_all(_at_)mydomain(_dot_)com
# Always do loop checking when forwarding to groups of people.
* ! X-Loop: all(_at_)mydomain(_dot_)com
| formail -a'X-Loop: all(_at_)mydomain(_dot_)com' -a'Reply-To:
all(_at_)mydomain(_dot_)com' |\
$SENDMAIL -oi $GROUP
--
Andrew Edelstein - andrew(_at_)pure-chaos(_dot_)com
http://andrew.pure-chaos.com
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail