procmail
[Top] [All Lists]

Re: Best way to extra To: address?

1999-02-12 15:13:42
At 12:55 1999-02-12 -0800, Jim Osborn spoke:

      RETURNADDR=`formail -zxFrom: \

This may generally do what you want it to, but it isn't RFC822 compliant --
you're assuming the From: is the sender, or the return address.  It isn't
always.  That's why -rt is used with formail:

        formail -rztx To:

To generate a reply header compliant with the rules of RFC822 (r), and to
assume that the sender used valid addressing (t).  You're then getting the
senders' address from the To: field.  At this point, it is also a raw
address, without optional decoration.

---
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.

 Sean B. Straw / Professional Software Engineering
 Post Box 2395 / San Rafael, CA  94912-2395

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