Re: how to get recipient of email
- From: "Brian McCauley" <nobull67@xxxxxxxxx>
- Date: 2 Feb 2007 23:52:52 -0800
On Feb 3, 12:13 am, jcha...@xxxxxxxxxxx wrote:
Hello I noticed that when amavis quarantines a message adds the X-
envelop-to tag to the headers of the email. This header has all the
recipients of the email. Some email files dont have a TO
or have a BCC. Can anyone tell me how to get all recipients in a eml
file?
No.
The recipients of an e-mail in transit are written on the envelope,
not in the message itself.
When your MUA send a mail the recipients will often get copied from
the headers to the envelope. At this point the BCC (add BC-like)
headers are removed. But addresses can also get on to the envelope in
other ways.
If a mail has multiple recipients it will, in general, be split and
handled many MTAs. The envelope seen by each MTA will only contain the
recipients for which that MTA is handling delivery.
I'm not familiar with Amavis but I assume it's running on an MTA and
is passed the message and the envelope. Presumably it places a copy of
the envelope-to it sees in the X- header. This is bad because it
potentially allows the To: recepient to see the BCC: recepient. If
Amavis is running on the senders MTA this might be the full list. If
it's running on the recepient's MTA it will only see other recpient's
whose inbound mail is also handled by the same MTA.
None of this, of course, has anything to do with Perl.
.
- References:
- how to get recipient of email
- From: jcharth
- how to get recipient of email
- Prev by Date: Re: Pretty Format Report Nested Objects Insanity
- Next by Date: FAQ 4.30 How do I capitalize all the words on one line?
- Previous by thread: how to get recipient of email
- Next by thread: FAQ 4.6 Why doesn't & work the way I want it to?
- Index(es):
Relevant Pages
|