Matt Kettler wrote: >[EMAIL PROTECTED] wrote: > > >>Matt Kettler wrote: >> >> >> >>>[It] has no access to the message envelope, only the headers and >>>body, so this information isn't accessible to SA. >>> >>> >>> >>Well, unless you add an Apparently-To header in the MTA prior to calling >>SpamAssassin. MIMEDefang has an $AddApparentlyToForSpamAssassin variable you >>can set to 1 in mimedefang-filter for this. >> >>I assume SpamAssassin uses this header? >> >> >> >> >Yes, but I've never seen an "Apparently-To" implementation that listed >all the recipients of a multi-recipient message... > >All the implementations I've seen add this after the message has been >split up and only the current recipient is added, which doesn't help. We >are trying to detect one which has a BCC to another user. > >
Exactly. I'm using Sendmail and Mimedefang 2.56 if that helps any. Looking at spam_assassin_mail() in Mimedefang, I see: if ($AddApparentlyToForSpamAssassin and ($#Recipients >= 0)) { push(@sahdrs, "Apparently-To: " . join(", ", @Recipients) . "\n"); } Are you sure the value of @Recipients is fragmented at this point? -Philip