SOURCES: spamassassin-bug-4623.patch (NEW) - update for new Mail::...

glen glen at pld-linux.org
Fri Jan 27 16:12:31 CET 2006


Author: glen                         Date: Fri Jan 27 15:12:24 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- update for new Mail::DomainKeys API

---- Files affected:
SOURCES:
   spamassassin-bug-4623.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/spamassassin-bug-4623.patch
diff -u /dev/null SOURCES/spamassassin-bug-4623.patch:1.1
--- /dev/null	Fri Jan 27 16:12:24 2006
+++ SOURCES/spamassassin-bug-4623.patch	Fri Jan 27 16:12:19 2006
@@ -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 {
================================================================


More information about the pld-cvs-commit mailing list