procmail
[Top] [All Lists]

Re: parsing "To:" and "Cc:" fields (need help)

1997-02-14 09:51:50
Joe Pruett <joey(_at_)q7(_dot_)com> writes:
if the isp in question is running sendmail 8.8 config files, then the
following procmail lines will capture the envelope address into a
magic header line.  then if fetchmail can be convinced to use that
header when talking to the local sendmail, things will be just fine.
if anyone has the fetchmail magic handy, please send it out to the
list as well.

EXTRA=$1

:0 fhw
* EXTRA ?? @
| formail -A "X-Envelope-To: $EXTRA"


This only works when procmail is being invoked with something like
the mailertable.  If your ISP handcrafted their virtual domain stuff
then all bets are off.

Also, I'd suggest using formail's -I flag instead of -A.

Philip Guenther

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