spamassassin-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivo Truxa <>
Subject Re: Disable awl when some other rule hit
Date Sun, 30 Mar 2014 20:52:43 GMT
Nuno Fernandes-2 wrote
> Yes.. you are correct. The result is not added to the AWL database but i'm
> ok with that.

Personally I think it makes no sense using AWL when you do not let it work,
and do not store all scores. A better place to make the modification is at
the bottom of the sub check_from_in_auto_whitelist(), in the condition "if
($delta != 0)". Store the value of the noawl tag in the loop where your
current code is, but don't return from there. Let the sub parse through, and
skip returning the delta score at the bottom.

However, unless you manage to get this modification to the official code,
you have to redo the patch after each update, so as I wrote previously, IMHO
the better way to handle it, is adjusting the tag scores so that you do not
need to disable AWL. You could also write a rule based on the concerned tag
values, in combination with the AWL value, so that it does the same trick
without the need to hack the code. Something in a way similar to this one:

describe AWL_FIX   Suppressing AWL
priority AWL_FIX   1100
score  AWL_FIX   5.0

It is always preferable customizing your installation through settings and
rules, than hacking the code.

View this message in context:
Sent from the SpamAssassin - Users mailing list archive at

View raw message