On 06/28/2014 03:21 PM, RW wrote:
On Sat, 28 Jun 2014 15:05:00 +0200
Axb wrote:

On 06/28/2014 03:43 AM, David B Funk wrote:

Checking the SA source I found in PerMsgStatus.pm a line of code:
    $self->{msg}->delete_header('X-Spam-.*');
that ran before any tests. So looking for SA headers inside of SA
is pointless.


see  "clear_headers" and "remove_header"
   in
http://spamassassin.apache.org/full/3.4.x/doc/Mail_SpamAssassin_Conf.txt

if you don't clear/remove headers and use custom add_header settings
for your SA you can do foo with prettaged msgs.


I don't see how that helps. It allows you to customize the headers
written by SA, but it doesn't stop it stripping all the pre-existing
X-Spam-* headers.


remove_header ham

and only leave the pre tagged spam headers, for example...

I wouldn't use any of these approaches except use the sender's headers to reject the msgs at smtp level...

"If you tag a spam, keep it" sort of thing...

with Postfix's header checks

/^X-Spam-Flag: YES/     REJECT  Have enough spam - You can keep yours

Reply via email to