From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63724 Path: news.gmane.org!not-for-mail From: Daiki Ueno Newsgroups: gmane.emacs.gnus.general Subject: Re: EasyPG and inline-PGP Date: Sat, 09 Sep 2006 04:10:12 +0900 Message-ID: References: <7c1a09a9-1a6e-4bef-b53a-dfc576d476d1@well-done.deisui.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1157742670 13268 80.91.229.2 (8 Sep 2006 19:11:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Sep 2006 19:11:10 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+m12251@lists.math.uh.edu Fri Sep 08 21:11:05 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GLlka-0003Xb-JW for ding-account@gmane.org; Fri, 08 Sep 2006 21:10:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1GLlkT-0001Yy-00; Fri, 08 Sep 2006 14:10:45 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1GLlk7-0001Xe-00 for ding@lists.math.uh.edu; Fri, 08 Sep 2006 14:10:23 -0500 Original-Received: from quimby.gnus.org ([80.91.227.211]) by mx1.math.uh.edu with esmtp (Exim 4.52) id 1GLlk5-0005ZY-Cy for ding@lists.math.uh.edu; Fri, 08 Sep 2006 14:10:23 -0500 Original-Received: from 221x255x76x220.ap221.ftth.ucom.ne.jp ([221.255.76.220] helo=localhost ident=Debian-exim) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1GLlk2-0004wa-00 for ; Fri, 08 Sep 2006 21:10:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=well-done.deisui.org ident=ueno) by localhost with esmtp (Exim 4.63) (envelope-from ) id 1GLljw-0006jE-PO; Sat, 09 Sep 2006 04:10:12 +0900 Original-To: Michael Piotrowski X-Attribution: DU In-Reply-To: (Michael Piotrowski's message of "Fri, 08 Sep 2006 16:12:45 +0200") X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:63724 Archived-At: >>>>> In >>>>> Michael Piotrowski wrote: > On 2006-09-08, Daiki Ueno wrote: > >> When using EasyPG, and when viewing inline-PGP encrypted messages, I'm > >> prompted for my passphrase, but then only a > > > >> [1. application/pgp-encrypted]... > > > >> button is displayed. If I type K i, the decrypted text is displayed > >> correctly. > > > > I can't reproduce this. Could you send me such a message? > I just did some more experiments and apparently this happens when the > encrypted message contains non-ASCII characters. I'll send you a test > message. Ah, I misunderstood what is "inline-PGP". The following patch will fix the problem. I'll commit it on Monday. Index: mml2015.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/mml2015.el,v retrieving revision 7.27 diff -u -r7.27 mml2015.el --- mml2015.el 7 Sep 2006 08:30:07 -0000 7.27 +++ mml2015.el 8 Sep 2006 19:04:13 -0000 @@ -1053,14 +1053,13 @@ (goto-char (point-min)) (while (search-forward "\r\n" nil t) (replace-match "\n" t t)) + (mm-set-handle-multipart-parameter + mm-security-handle 'gnus-info "OK") (if (epg-context-result-for context 'verify) (mm-set-handle-multipart-parameter - mm-security-handle 'gnus-info - (concat "OK\n" - (epg-verify-result-to-string - (epg-context-result-for context 'verify)))) - (mm-set-handle-multipart-parameter - mm-security-handle 'gnus-info "OK"))))) + mm-security-handle 'gnus-details + (epg-verify-result-to-string + (epg-context-result-for context 'verify))))))) (defun mml2015-epg-verify (handle ctl) (catch 'error Regards, -- Daiki Ueno