procmail
[Top] [All Lists]

Re: How do I get the envelope-sender?

1997-11-20 21:50:26
no-mailbox <dnhunt(_at_)rain(_dot_)org> writes:
My ISP just installed sendmail8.8.8. The procmail version is 3.11pre7.
...
I've been trying to get procmail to reveal the envelope-sender and
haven't had any luck. I tried looking at $1 in a LOG statement
(LOG=$1)  but always get nothing. Do I have to do something different
in .forward, or there is something I'm missing? Is the address in the
'From ' line at the top of the mail the same as envelope sender? 
Looking at the sendmail.cf file, it is set with $g. Can someone help
me by explaining the envelope sender riddle? 

Yes, the address on the "From " line is the envelope sender.  If the
message has a Return-Path: header, then it would probably be easier to
use that instead, as then you don't have to deal with the date as found
at the end of the "From " header.

Philip Guenther

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