procmail
[Top] [All Lists]

insert one line at the top of incoming message

1998-03-26 23:12:19

If a message comes to a certain address and is also posted to a Usenet  
group, I would like to put a message like:

        This message was also posted to NAME
        
where NAME is the name of the newsgroup.

I've been doing this (snippet of code only)     

* ^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... since these are Usenet messages I shouldn't have to worry too much  
about MIME and all that stuff.

Does anyone have a simple solution?

Thanks

TjL