Robby Lee asked,
| Here's the rc.
|
| :0
| * ^to_group
| ! $FORWARDEE
|
| My question is. how can I regenerate the "to" line to
| something like "To: Team1 <Group(_at_)abc(_dot_)com>"
|
| Would this work?
|
| :0
| * ^to_group
| {
| :0
| | (formail -I"To: Team1 <Group(_at_)abc(_dot_)com>")
| ! $FORWARDEE
No; there can be only one action per recipe. This would do it:
:0
* ^TO_group
| formail -I"To: Team 1 <Group(_at_)abc(_dot_)com>" | $SENDMAIL $FORWARDEE
or so would this:
:0fh
* ^TO_group
| formail -I"To :Team 1 <Group(_at_)abc(_dot_)com>"
:0A
! $FORWARDEE
You might want to use -i instead of -I to keep the original To: line as
Old-To:; that depends on whether you want the person at $FORWARDEE to find
out what the original To: line said or not.