in reply to (ichimunki) Re x 3: Getting BCC: header from a message.
in thread Getting BCC: header from a message.

This works to a point. If CC is used, this won't work (the Received Header does not contain the "for"). If there is more than one address in the BCC field, only the first is in the received header. (This is all after sendmail forwards the mail to the program. I'm sure its doing some type of manipulation before it hits my mail forwarder.)
  • Comment on Re: (ichimunki) Re x 3: Getting BCC: header from a message.

Replies are listed 'Best First'.
Re: Re: (ichimunki) Re x 3: Getting BCC: header from a message.
by merlyn (Sage) on Jun 30, 2001 at 09:31 UTC
    The "envelope-to" is not in the header reliably anywhere. It's in the envelope. If you can't get an envelope-to out-of-band somehow, then you cannot complete your task reliably, and you'll need to back up a step to figure out how to do it instead.

    This is why I hacked sendmail so that envelope-to was available to my .procmailrc as $1. It shows up under Joey Pruett's name because he was the one that submitted the modifications to the sendmail crew.

    -- Randal L. Schwartz, Perl hacker