Gnus development mailing list
 help / color / mirror / Atom feed
* Parsing Content-Type with repeated attributes
@ 2010-10-11 12:11 David Engster
  2010-10-11 18:21 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: David Engster @ 2010-10-11 12:11 UTC (permalink / raw)
  To: ding

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



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

end of thread, other threads:[~2010-10-12 21:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-11 12:11 Parsing Content-Type with repeated attributes David Engster
2010-10-11 18:21 ` Lars Magne Ingebrigtsen
2010-10-12 18:51   ` David Engster
2010-10-12 21:33     ` Lars Magne Ingebrigtsen

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).