* ^Newsgroups: ()\/.*
| formail -A"X-NOTICE: This message was also posted to $MATCH"
But that puts it into an X-header and I'd prefer into the body of the
message...
Maybe I'm missing something but this looks exactly like the problem I just
finished looking at a few days ago. Let's put "This message was also posted
to $MATCH" into posted-to.txt. Philip Guenther suggests code like this:
| cat -; perl -pe 's:\$(\w+):$ENV{$1}:eg' posted-to.txt
or like this:
| perl -pe 'BEGIN{while(<STDIN>){print}} s:\$(\w+):$ENV{$1}:eg' posted-to.txt
And David Tamkin mentions this:
| cat - ; sed "s/\$REPLYTO/$REPLYTO/" posted-to.txt
or this if you want to do it all in the recipe:
# Note the space between "$" and "a"!
| sed "$ a\\
This message was also posted to $MATCH.\\
\\
"
--Ken
68 Westy, Admin --type2-- The Volkswagen Bus Mailing List