From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/36349 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: Sample multi-signature email [jeff covey ] keymaps missing from console-common Date: 24 May 2001 20:13:49 +0200 Message-ID: References: <87bsoilqk0.fsf@cachemir.echo-net.net> <87pucyk76x.fsf@cachemir.echo-net.net> <87lmnmk6ev.fsf@cachemir.echo-net.net> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035171949 8140 80.91.224.250 (21 Oct 2002 03:45:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:45:49 +0000 (UTC) Return-Path: Original-Received: (qmail 26770 invoked by alias); 24 May 2001 18:13:54 -0000 Original-Received: (qmail 26764 invoked from network); 24 May 2001 18:13:53 -0000 Original-Received: from dolk.extundo.com (195.42.214.242) by gnus.org with SMTP; 24 May 2001 18:13:53 -0000 Original-Received: from barbar.josefsson.org (slipsten.extundo.com [195.42.214.241]) (authenticated) by dolk.extundo.com (8.11.3/8.11.3) with ESMTP id f4OIDwq05732 for ; Thu, 24 May 2001 20:13:58 +0200 Original-To: ding@gnus.org In-Reply-To: <87lmnmk6ev.fsf@cachemir.echo-net.net> (Roland Mas's message of "24 May 2001 19:23:20 +0200") Mail-Copies-To: nobody User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.103 Original-Lines: 54 Xref: main.gmane.org gmane.emacs.gnus.general:36349 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:36349 Roland Mas writes: >> Here comes one mail I got from a mailing-list. It contains a >> forwarded message, which in turn contains another one. All three >> are signed. I see three buttons, but none of them show any details >> when clicked. > > And I just saw that forwarding emails seems to break the signatures in > them. Dunno why. Signatures are calculated on MIME headers as well the content -- this makes it difficult to use a signed MIME blob out of context while preserving the validity of the signature. I think this was bad design, but it's too late to fix now. But wait, you wanted details when the signature was good? Ah, my previous patch only fixed details upon failures. Try the following, it should provide details both on success and failures. --- mml2015.el.~6.30.~ Sat Mar 24 11:58:22 2001 +++ mml2015.el Thu May 24 20:07:07 2001 @@ -175,8 +175,23 @@ (replace-match "-----BEGIN PGP SIGNATURE-----" t t)) (if (re-search-forward "^-----END PGP [^-]+-----\r?$" nil t) (replace-match "-----END PGP SIGNATURE-----" t t))) + (let ((mc-gpg-debug-buffer (get-buffer-create " *gnus gpg debug*"))) (unless (condition-case err + (prog1 (funcall mml2015-verify-function) + (if (get-buffer " *mailcrypt stderr temp") + (mm-set-handle-multipart-parameter + mm-security-handle 'gnus-details + (with-current-buffer " *mailcrypt stderr temp" + (buffer-string)))) + (if (get-buffer " *mailcrypt stdout temp") + (kill-buffer " *mailcrypt stdout temp")) + (if (get-buffer " *mailcrypt stderr temp") + (kill-buffer " *mailcrypt stderr temp")) + (if (get-buffer " *mailcrypt status temp") + (kill-buffer " *mailcrypt status temp")) + (if (get-buffer mc-gpg-debug-buffer) + (kill-buffer mc-gpg-debug-buffer))) (error (mm-set-handle-multipart-parameter mm-security-handle 'gnus-details (cadr err)) @@ -187,7 +202,7 @@ nil)) (mm-set-handle-multipart-parameter mm-security-handle 'gnus-info "Failed") - (throw 'error handle))) + (throw 'error handle)))) (mm-set-handle-multipart-parameter mm-security-handle 'gnus-info "OK") handle)))