https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7354
Bug ID: 7354
Summary: Allow custom addrlists for WLBLEval
Product: Spamassassin
Version: 3.4 SVN branch
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Plugins
Assignee: [email protected]
Reporter: [email protected]
Created attachment 5405
--> https://bz.apache.org/SpamAssassin/attachment.cgi?id=5405&action=edit
patch from trunk
On 30/09/16 01:07, Paul Stead wrote:
> Hi guys,
>
> Whilst looking through WLBLEval eval rules I noticed the likes of the
> following:
>
> --
> $self->register_eval_rule("check_from_in_list");
> $self->register_eval_rule("check_to_in_list");
> --
>
> Cool! I can check from and to lists, except I can't find a way to
> add/remove to addrlists like we can by using enlist_uri_host for hosts.
>
This patch adds a new directive "enlist_addrlist" to Conf.pm - after asking on
the Dev list I got no answer as to whether this new directive would be best
here or within WLBLEval.pm itself.
I've also added a patch to WLBLEval to add the eval check_replyto_in_list which
compliments the patch to Conf.pm
Example new rules which could come from this:
---8<---
enlist_addrlist (SUSTLDS) *@*.top
enlist_addrlist (SUSTLDS) *@*.download
enlist_addrlist (SUSTLDS) *@*.science
header __FROM_SUS_TLD eval:check_from_in_list('SUSTLDS')
---8<---
Another example for something posted to the SA list earlier today:
---8<---
enlist_addrlist (PAYPAL_DOMAINS) *@paypal.com *@paypal.co.uk
header __FROM_PAYPAL eval:check_from_in_list('PAYPAL_DOMAINS')
---8<---
Thoughts?
--
You are receiving this mail because:
You are the assignee for the bug.