Christian Recktenwald wrote:
On Thu, Apr 25, 2013 at 10:18:43AM +0200, Frank Gadegast wrote:
And SA surely strips all head-lines starting with "X-Spam-" before
its doing anything.
In Mail/SpamAssassin.pm there is some special handling of
"X-Spam-" prefixed mail headers.
So it's really not about subsequent dashes.
Yes, it says:
Returns the text of the message, with any SpamAssassin-added text (such
as the report, or X-Spam-Status headers) stripped.
And the code looks like
# remove any other X-Spam headers we added, will be unfolded
$hdrs = "\n".$hdrs; # simplifies regexp below
1 while $hdrs =~ s/\nX-Spam-.*\n/\n/g;
$hdrs =~ s/^\n//;
And SA is doing it right, to remove all X-Spam-lines
before its starting, so that spammer cannot trick SA.
And whatever line is inserted by ASN.pm, it needs
to be stripped too, and thats why its programmed
like it is.
But I have no still no idea how to get it done in a
perfect order, like the following
- SA strips the X-Spam-lines
- ASN.pm inserts its line including the AS
- SA runs its rules and triggeres also on the X-Spam-ASN-line
Is it time to ask the developers or file a bug ?
Kind regards, Frank
--
MOTD: "have you enabled SSL on a website or mailbox today ?"
--
PHADE Software - PowerWeb http://www.powerweb.de
Inh. Dipl.-Inform. Frank Gadegast mailto:fr...@powerweb.de
Schinkelstrasse 17 fon: +49 33200 52920
14558 Nuthetal OT Rehbruecke, Germany fax: +49 33200 52921
======================================================================