Dave Kitabjian <[EMAIL PROTECTED]> writes on 15 August 2000 at 16:01:16 -0400
> Hey folks,
>
> We have access to the envelope sender in $SENDER, but qmail munges the
> envelope recipient via virtualdomains, resulting in $RECIPIENT which is
> not a valid email address.
>
> We all know that you can calculate the envelope recipient by taking
> $RECIPIENT and removing $HOST from the beginning, or else parsing the
> To:, Cc:, and Bcc: headers by hand. But considering the flexibility
> provided in qmail-command, it seems to me rather odd that I don't have
> access to what might be considered the most primitive property, the
> envelope recipient, without jumping through some hoops.
I tend to agree that easy access to the envelope recipient would be
nice.
Your suggestion of parsing headers to get it doesn't work, though; the
BCC header is gone by the time the mail arrives at its destination,
and regardless of that, there's no requirement that the envelope
recipient ever appear in any of those, or any other, message header.
--
Photos: http://dd-b.lighthunters.net/ Minicon: http://www.mnstf.org/minicon
Bookworms: http://ouroboros.demesne.com/ SF: http://www.dd-b.net/dd-b
David Dyer-Bennet / Welcome to the future! / [EMAIL PROTECTED]