At 15:21 2003-07-01 -0700, Noarmun E. Mailer wrote:
IIRC, the BCC line is deleted by the outgoing MTA and that information is
put in the envelope information. On your own there won't be a BCC line
for you to find, discover, match, etc.
Oooh, your message was in such purty colours and such a tiny font.
Sendmail will happily accept (and is frequenly invoked with) email
addresses on the commandline, and it'll ignore the Header fields in the
body of the message when you do this without providing the -t option on the
commandline. You need to provide '-t' on the commandline for it to parse
recipients from the message itself. However, sendmail WILL strip the Bcc:
header from the body of the message in any event.
What you can do within your own MTA is figure out how to capture all the
envelope addresses and put them in some kind of custom header line as each
mail item is received.
FTR at least in the case of Sendmail, if there are multiple local
recipients, the X-Envelope-To: header will NOT be generated (this, when you
have the additional .cf options to add the header).
Mixed in those headers would be all the BCC information. This would allow
you to match on them but not as BCC. You'd have to have some other
criteria. An interesting one would be to match addresses that show in the
envelope but not in the To: or CC: header lines. Doing this destroys the
B part of BCC...
But the only recipient capable of seeing this is the one who is Bcc'd -
i.e. they can tell that they were Bcc'd, but do not have information about
who else was Bcc'd. of course, when your OWN address doesn't appear in
To|Cc:, then it's a _given_ that you were Bcc'd anyway, so this isn't a
revelation.
I think the best way to go would be for sendmail to log all envelope
addresses (and in 8.12 if you log high enough, it might be in there - I
haven't looked). A separate log file for envelope addresses would be a
nice touch. The advantage here is that you could track mail delivery
behind the scenes but each mail item could be as anonymous as it is
now. I don't think you can do this within the sendmail.cf file. Maybe
with a milter.
I would expect that a milter should be able to accomplish this.
Of course, the SYSADM is capable of reviewing the mail log, and all
recipients, incoming or outgoing, ARE logged there.
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail