Sean B. Straw <PSE-L(_at_)mail(_dot_)professional(_dot_)org> writes:
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.
In my case it's all I've got; by the time my recipe gets the mail,
the list's posting address is in the To: field, and nothing but the
From: (or Reply-to) line can be counted on to represent the author.
My script would undoubtedly be better if it used the RT line if
present. I looked for something equivalent to "formail -rztx To:"
that would use the From: or Reply-to:, but came up empty.
Of course, this discussion has gotten a bit off the original poster's
question - he WAS asking about To: extraction. :)
Jim