You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2014/07/25 02:52:55 UTC

[Bug 7060] Allow local criteria for blocking URL's based on the hosts ISP, Country, or CIDR block - URILocalBL.pm

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=7060

--- Comment #15 from Philip Prindeville <ph...@redfish-solutions.com> ---
(In reply to AXB from comment #12)

> Different evals have different priorities in the processing chain
> 
> grep -R -H priority thru /trunk/lib
> you'll get a ton of results which will point you in the right direction

Okay, so what does the priority do?  And what's a good example of it in a
module?

(In reply to AXB from comment #14)

> it's URIDNSBL.pm

Okay, looking at that module I see:

    # take the usable domains and add them to the ordered list
    while (my($host,$domain) = each( %{$info->{hosts}} )) {
      if ($skip_domains->{$domain}) {
        dbg("uridnsbl: domain $domain in skip list, host $host");

so I can do something similar and process exclusions based on the domain
instead of the host's FQDN.

I see RegistrarBoundaries::trim_domain() being called, but from the method
complete_ns_lookup().  Since I don't handle my own asynchronous DNS lookups,
I'm not sure how I would use this function directly.

-- 
You are receiving this mail because:
You are the assignee for the bug.