From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69820 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.gnus.general Subject: Accepting x-pkcs7-signature Date: Thu, 22 Jul 2010 23:11:59 +0200 Message-ID: <87y6d3z0f4.fsf@randomsample.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1279833220 2062 80.91.229.12 (22 Jul 2010 21:13:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Jul 2010 21:13:40 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M18210@lists.math.uh.edu Thu Jul 22 23:13:38 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oc35F-00033O-3e for ding-account@gmane.org; Thu, 22 Jul 2010 23:13:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Oc341-0006EV-6V; Thu, 22 Jul 2010 16:12:21 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Oc33y-0006EI-El for ding@lists.math.uh.edu; Thu, 22 Jul 2010 16:12:18 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Oc33x-0006X6-3c for ding@lists.math.uh.edu; Thu, 22 Jul 2010 16:12:17 -0500 Original-Received: from m61s02.vlinux.de ([83.151.21.164]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1Oc33u-0002Tq-00 for ; Thu, 22 Jul 2010 23:12:14 +0200 Original-Received: from dslc-082-082-172-149.pools.arcor-ip.net ([82.82.172.149] helo=spaten) by m61s02.vlinux.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1Oc33t-0002rF-Jc for ding@gnus.org; Thu, 22 Jul 2010 23:12:13 +0200 User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) Mail-Copies-To: never Mail-Followup-To: ding@gnus.org X-Spam-Score: 0.8 (/) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.4765 Ham tokens: 0.000-275--453h-0s--0d--H*M:fsf, 0.000-261--429h-0s--0d--H*MI:fsf, 0.000-170--279h-0s--0d--H*u:Emacs, 0.000-154--253h-0s--0d--H*u:Gnus, 0.000-144--236h-0s--0d--H*u:linux Spam tokens: 0.999-2--0h-20s--0d--H*RU:sk:dslc-08, 0.999-2--0h-20s--0d--HX-Spam-Relays-External:sk:dslc-08, 0.999-2--0h-20s--0d--H*r:sk:dslc-08, 0.973-650--118h-14041s--0d--H*r:quimby.gnus.org, 0.961-588--168h-13827s--0d--HTo:D*gnus.org Autolearn status: ham 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4765] List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69820 Archived-At: 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