OliverScott wrote:
> I am playing with the Short Circuit plugin to speed up scanning (by skipping
> Network Tests on obviously good emails) and wanted to be able to query the
> AWL as part of this as I don't want to Short Circuit on BAYES_00 alone.
>
>   
<snip>
> I presume that this is because the AWL which normally runs at a priority of
> 1000 can't be accessed at an earlier stage?
>   
That's done because AFAIK, right now there's a single "query and update"
operation, which both queries the AWL, and updates it with new score
information all at once.

And besides this unusual application, querying the AWL before all the
rules are done being scored is useless, as you won't get the right
results out of it.  The score assigned by the AWL rule is a function of
both the current pre-AWL score, and the history. If you check the AWL
before all the rules are done, that "current score" value isn't going to
be accurate.

However, in your case, you're not trying to query the AWL for scoring
purposes, merely determine if a given sender has been seen at all
before. Which isn't really what the AWL was designed to do.

> I still want the AWL to do its normal job once the other scoring has
> finished, so don't want to make its priority less than 1000, but was hoping
> that there was a way to query its information earlier in the SpamAssasssin
> process.....
>
> Any ideas?
>   
Modify the AWL plugin code? You'd essentially want a stripped-down
version of "check_from_in_auto_whitelist" which really only checks to
see if the address exists in the DB or not, and doesn't do any score
calculation/update.


Reply via email to