From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/72912 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.gnus.general Subject: Parsing Content-Type with repeated attributes Date: Mon, 11 Oct 2010 14:11:17 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1286799112 7970 80.91.229.12 (11 Oct 2010 12:11:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Oct 2010 12:11:52 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M21284@lists.math.uh.edu Mon Oct 11 14:11:50 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 1P5HEJ-0000lB-Q3 for ding-account@gmane.org; Mon, 11 Oct 2010 14:11:47 +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 1P5HE2-00013E-Pq; Mon, 11 Oct 2010 07:11:30 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1P5HE1-000130-Hk for ding@lists.math.uh.edu; Mon, 11 Oct 2010 07:11:29 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P5HE0-0003fi-C9 for ding@lists.math.uh.edu; Mon, 11 Oct 2010 07:11:29 -0500 Original-Received: from v3-1008.vxen.de ([79.140.41.8]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P5HDz-0000Xt-00 for ; Mon, 11 Oct 2010 14:11:27 +0200 Original-Received: from [134.76.4.238] (helo=imac.local) by v3-1008.vxen.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1P5HDw-0007g4-JO for ding@gnus.org; Mon, 11 Oct 2010 14:11:24 +0200 User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (darwin) Mail-Copies-To: never Mail-Followup-To: ding@gnus.org X-Spam-Score: -0.5 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:72912 Archived-At: I just got a mail with the following Content-Type: Content-Type: application/x-pkcs7-mime;smime-type=signed-data;name=smime.p7m; smime-type=signed-data; name="smime.p7m" This belongs to a base64 encoded mail with S/MIME signing. Now, this Content-Type was obviously produced by some strange mail software (*cough* X-MimeOLE: Produced By Microsoft Exchange V6.5 *cough*), but when you run that Content-Type through `rfc2231-parse-qp-string', it produces ("content-type:application/x-pkcs7-mime" (name . "smime.p7msmime.p7m") (smime-type . "signed-datasigned-data")) I first thought this was a bug, but it seems the above rfc2231 function concats those strings very deliberately... Gnus also actually tries to verify the mail, but with the old mm-view-pkcs7-verify and I'm using EPG with gpgsm. -David