procmail
[Top] [All Lists]

Re: Adding to a field?

1996-08-01 13:25:48
On Thu, 1 Aug 1996, Doug Hughes wrote:



    What the best way to add to a field with procmail, formail?  I 
want procmail to send some messages to formail so it can add an 
additional address to the Reply-To field. E.g.:

    Orig:
    Reply-To: john(_at_)somewhere(_dot_)com

    New:
    Reply-To: john(_at_)somewhere(_dot_)com, 
mary(_at_)somewherelse(_dot_)com

    Is there a smooth way to do this?

How about this one?

:0 H
* ^Reply-To: john(_at_)somewhere(_dot_)com
|$FORMAIL -rt -I "Reply-To: john(_at_)somewhere(_dot_)com, 
mary(_at_)somewherelse(_dot_)com" | $SENDMAIL -oi -t


        Yeah that's partially what I want, but I didn't give enough
detail. :) I want it to somehow extract or create (if needed) the variable
Reply-To: in the original message and add in the hard coded one (e.g.
"mary").  So it's more like:
        :0
        * ^TOmessagepool
        {
                :0
                extract/create (if needed) the Reply-To: and add in the 
                        "mary" or "archive" 
        }

        Any ideas?
---
Jeffrey Gustafson -- jeffgus(_at_)packardbell(_dot_)com
Technical Specialist & SysAdmin
On-Line Services Group
Packard Bell Electronics, Inc.

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