https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7828

            Bug ID: 7828
           Summary: uri_detail lacks support for key type "host"
           Product: Spamassassin
           Version: 3.4.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Plugins
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: Undefined

I'm wondering why uri_detail doesn't support "host" as key like "domain" since
it is available in the hash returned by get_uri_detail_list().

Is this an improvement in PerMsgStatus.pm not promoted to URIDetail Plugin? A
short test with "|host" added in the list of allowed keys was successful.
------------
--- /tmp/URIDetail.pm.orig      2020-06-17 11:30:23.208951331 +0200
+++ /usr/local/share/perl5/Mail/SpamAssassin/Plugin/URIDetail.pm       
2020-06-16 23:39:37.888568387 +0200
@@ -119,7 +119,7 @@
        my $op = $2;
        my $pattern = $3;

-       if ($target !~ /^(?:raw|type|cleaned|text|domain)$/) {
+       if ($target !~ /^(?:raw|type|cleaned|text|domain|host)$/) {
            return $Mail::SpamAssassin::Conf::INVALID_VALUE;
        }

--------------
But I'm not sure if I missed a detail.

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

Reply via email to