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

            Bug ID: 6895
           Summary: Avoid "Use of uninitialized value" warnings in DKIM
                    plugin on broken signatures
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Plugins
          Assignee: [email protected]
          Reporter: [email protected]
    Classification: Unclassified

Some recent spam contains DKIM signatures with missing required tags
'd' and/or 's', which results in unnecessary warnings like:

Use of uninitialized value in lc
  at /usr/local/lib/perl5/site_perl/5.17.7/Mail/SpamAssassin/Plugin/DKIM.pm
  line 818.

Use of uninitialized value in lc
  at /usr/local/lib/perl5/site_perl/5.17.7/Mail/SpamAssassin/Plugin/DKIM.pm
  line 1144.

The fix is fairly straightforward, just posting this for documentation.

Btw, the underlying module Mail::DKIM also produces its own
set of warnings on the same reason. This is tracked as a CPAN bug
[rt.cpan.org #82913] - https://rt.cpan.org/Ticket/Display.html?id=82913


The signature header field causing the above looks like:

  DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;

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

Reply via email to