]> git.cworth.org Git - sup/commitdiff
turn off warnings about non-pgp signatures
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 14 Dec 2007 01:13:16 +0000 (01:13 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 14 Dec 2007 01:13:16 +0000 (01:13 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@771 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/message.rb

index 4d9e04f7becdb75cbc99c3e0b6cbe5e7b4d33eba..1c84d79d9881c6c19ffe08fdb41af795d67d42bc 100644 (file)
@@ -277,7 +277,6 @@ private
   ## product.
 
   def multipart_signed_to_chunks m
-#    Redwood::log ">> multipart SIGNED: #{m.header['Content-Type']}: #{m.body.size}"
     if m.body.size != 2
       Redwood::log "warning: multipart/signed with #{m.body.size} parts (expecting 2)"
       return
@@ -289,13 +288,15 @@ private
       return
     end
 
+    ## this probably will never happen
     if payload.header.content_type == "application/pgp-signature"
       Redwood::log "warning: multipart/signed with payload content type #{payload.header.content_type}"
       return
     end
 
     if signature.header.content_type != "application/pgp-signature"
-      Redwood::log "warning: multipart/signed with signature content type #{signature.header.content_type}"
+      ## unknown signature type; just ignore.
+      #Redwood::log "warning: multipart/signed with signature content type #{signature.header.content_type}"
       return
     end