]> git.pld-linux.org Git - packages/spamassassin.git/commitdiff
- update for new Mail::DomainKeys API
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 27 Jan 2006 15:12:19 +0000 (15:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    spamassassin-bug-4623.patch -> 1.1

spamassassin-bug-4623.patch [new file with mode: 0644]

diff --git a/spamassassin-bug-4623.patch b/spamassassin-bug-4623.patch
new file mode 100644 (file)
index 0000000..20865d3
--- /dev/null
@@ -0,0 +1,24 @@
+update to support Mail::DomainKeys API change
+http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4623
+
+Index: lib/Mail/SpamAssassin/Plugin/DomainKeys.pm
+===================================================================
+--- lib/Mail/SpamAssassin/Plugin/DomainKeys.pm (revision 357661)
++++ lib/Mail/SpamAssassin/Plugin/DomainKeys.pm (working copy)
+@@ -211,7 +211,15 @@
+ # get the DK status "header" from the Mail::DomainKeys::Message object
+ sub _dkmsg_hdr {
+   my ($self, $message) = @_;
+-  return $message->header->value();
++  # try to use the signature() API if it exists (post-0.80)
++  if ($message->can("signature")) {
++    if (!$message->signed) {
++      return "no signature";
++    }
++    return $message->signature->status;
++  } else {
++    return $message->header->value;
++  }
+ }
+ sub sanitize_header_for_dk {
This page took 0.070798 seconds and 4 git commands to generate.