> I'm trying to make a Perl program that is called by the .qmail file for a
> single account but recieves messages for several extension addresses. To
> clarify, a single account, bob, will be recieving for bob-john, bob-jill, etc.
> This program is supposed to database certain parts of the message, namely the
> message body, the date the message was recieved, and the recipients. The most
> important part of this is the recipient. These messages are support emails
> going out to customers from an exchange (ugh!) server that will be Bcc'd to the
> bob-whatever address. Like I said, the most important piece of information that
> we need to get from the email is the bob-whatever address the message was Bcc'd
> to, but the rest of the data is still extremely desireable. I would prefer to
> not have to write a program that I have to edit a single line of every time we
> add a bob-whatever address, and the messages can only be sent to us via Bcc.
> The way I understand qmail-command is that by the time the message gets sent
> through whatever program the .qmail file calls, the envelope is gone, so
> discerning the bob-whatever from there is not an option. And, as we all know,
> Bcc doesn't show in headers, otherwise it would fall into the category of
> 'pointless features'. The best that I got is that I put an alias into ~alias
> for each bob-whatever user that calls the Perl program with the whatever from
> bob-whatever as an arguement, that I later access through @ARGV.
>
> Any thoughts (that lead to a logical solution) are greatly appreciated here.

The envelope recipient can be found in the Delivered-To: field in the headers.


MVH André Paulsberg


Reply via email to