Gnus development mailing list
 help / color / mirror / Atom feed
* Accepting x-pkcs7-signature
@ 2010-07-22 21:11 David Engster
  2010-07-23  8:53 ` Daiki Ueno
  0 siblings, 1 reply; 6+ messages in thread
From: David Engster @ 2010-07-22 21:11 UTC (permalink / raw)
  To: ding

I still have this old patch lying around, which lets Gnus accept
signatures with a x-pkcs7-signature MIME type, instead of just
"pkcs7-signature". Though RFC 2311 declares this as

C.1 Early MIME Types

   Some early implementations of S/MIME agents used the following MIME
   types: [...] application/x-pkcs7-signature [...] 
   In each case, the "x-" subtypes correspond to the subtypes described
   in this document without the "x-".

a quick look through my inbox actually shows more messages with those
"x-pkcs" types than plain "pkcs"; seems to be some kind of Exchange
thingy, so this will likely not change soon...

Does anyone see a problem with this patch?

--- mml-smime.el.~7.23.~	2008-05-19 10:47:42.000000000 +0200
+++ mml-smime.el	2008-09-17 11:56:12.000000000 +0200
@@ -520,10 +520,14 @@
 					   ctl 'protocol)
 					  "application/pkcs7-signature")
 				  t)))
-		(null (setq signature (mm-find-part-by-type
-				       (cdr handle)
-				       "application/pkcs7-signature"
-				       nil t))))
+		(null (setq signature (or (mm-find-part-by-type
+					   (cdr handle)
+					   "application/pkcs7-signature"
+					   nil t)
+					  (mm-find-part-by-type
+					   (cdr handle)
+					   "application/x-pkcs7-signature"
+					   nil t)))))
 	(mm-set-handle-multipart-parameter
 	 mm-security-handle 'gnus-info "Corrupted")
 	(throw 'error handle))


Regards,
David



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-07-24  1:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-22 21:11 Accepting x-pkcs7-signature David Engster
2010-07-23  8:53 ` Daiki Ueno
2010-07-23 10:32   ` David Engster
2010-07-23 14:57     ` Daiki Ueno
2010-07-23 18:13       ` David Engster
2010-07-24  1:21         ` Daiki Ueno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).