From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/4815 Path: news.gmane.org!not-for-mail From: Milan Zamazal Newsgroups: gmane.emacs.gnus.user Subject: Re: x-pkcs7-mime verification? Date: Thu, 31 Mar 2005 22:46:04 +0200 Organization: BRAILCOM, o.p.s. Message-ID: <87vf77bl2r.fsf@blackbird.zamazal.org> References: <87fyybk7lz.fsf@blackbird.zamazal.org> <87acojk4g3.fsf@blackbird.zamazal.org> <87acojefi3.fsf@seamus.arnested.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1138670701 24974 80.91.229.2 (31 Jan 2006 01:25:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:25:01 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:34:21 2006 Original-Path: quimby.gnus.org!newsfeed.gazeta.pl!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-X-Trace: individual.net U+TZHE+PB0LA64FJfSr/9Au5VO72cttPODeTtz9MICAiwN1Rli X-Face: >kl&pL}(a*u\BCj7Q,\Yoq35~,4dAu"CPGaJ[ahMli9uu#aF7dWxc3L.eaK2RWRU|',E+. -':&gJ-JAZ/N$f^4-3?G7M&Knna[A=lJ$}^!%@vuvulVl6-)x.V8RZ7fW9< User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:+3lFFvLGwOYgPQMtcAKDHUjsr84= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:4956 Original-Lines: 53 X-Gnus-Article-Number: 4956 Tue Jan 17 17:34:21 2006 Xref: news.gmane.org gmane.emacs.gnus.user:4815 Archived-At: >>>>> "AJ" == Arne Jørgensen writes: AJ> What is the difference/why isn't it decsrypting? It's a clear text message encoded in base64, not a message encrypted with the recipient's key. AJ> I can find the message in the source code but I never see the AJ> message myself. When I read a message that is both encrypted and AJ> signed I'm asked the same question as you (whether the message AJ> should be decrypted or not). On a positive answer I see the AJ> decrypted message and if I verify it (`W s') it succeeds too. And do the headers contain the application/x-pkcs7-mime MIME type? The mail I have problems with is produced by Outlook and contains the following content-type headers in the main mail headers: Content-Type: application/x-pkcs7-mime; name="smime.p7m" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7m" The mail body is base64 encoded and contains a signed message in the PKCS7 (I assume) format. The Gnus function handling it is: (defun mm-possibly-verify-or-decrypt (parts ctl) (let ((type (car ctl)) (subtype (cadr (split-string (car ctl) "/"))) (mm-security-handle ctl) ;; (car CTL) is the type. protocol func functest) (cond ((or (equal type "application/x-pkcs7-mime") (equal type "application/pkcs7-mime")) (with-temp-buffer (when (and (cond ((eq mm-decrypt-option 'never) nil) ((eq mm-decrypt-option 'always) t) ((eq mm-decrypt-option 'known) t) (t (y-or-n-p (format "Decrypt (S/MIME) part? ")))) (mm-view-pkcs7 parts)) ... mm-view-pkcs7 leads to the "unimplemented" message I've seen. Regards, Milan Zamazal -- The seeker after truth should be humbler than the dust. The world crushes the dust under its feet, but the seeker after truth should so humble himself that even the dust could crush him. -- M. K. Gandhi