procmail
[Top] [All Lists]

Re: Adding to a field?

1996-08-01 16:56:13
On Thu, 1 Aug 1996, Doug Hughes wrote:

How about this:
:0 H
* ^TOmessagepool
{
      REP=`formail -x Reply-To:`
      :0 a
      |$FORMAIL -rt -I "Reply-To: mary(_at_)somewherelse(_dot_)com, $REP" | 
$SENDMAIL -oi -t
}

This may generate an occassionally lonely trailing comma, but it shouldn't
matter (in the case where there is no previously existing Reply-To

____________________________________________________________________________
Doug Hughes                                   Engineering Network Services
System/Net Admin                              Auburn University
                      doug(_at_)eng(_dot_)auburn(_dot_)edu

        This looks like it'll will work!  I didn't quite understand how 
variables worked before.  
        What if a messages doesn't have a Reply-To?  Could I somehow 
default back to the 'From'?

---
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>