Gnus development mailing list
 help / color / mirror / Atom feed
From: Daiki Ueno <ueno@unixuser.org>
Cc: ding@gnus.org
Subject: Re: EasyPG and inline-PGP
Date: Sat, 09 Sep 2006 04:10:12 +0900	[thread overview]
Message-ID: <f3109588-02c6-41c4-933c-8a7dc841b3fb@well-done.deisui.org> (raw)
In-Reply-To: <x6ejumjvky.fsf@aix.cs.uni-magdeburg.de> (Michael Piotrowski's message of "Fri, 08 Sep 2006 16:12:45 +0200")

>>>>> In <x6ejumjvky.fsf@aix.cs.uni-magdeburg.de> 
>>>>>	Michael Piotrowski <mxp@dynalabs.de> wrote:
> On 2006-09-08, Daiki Ueno <ueno@unixuser.org> 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



  reply	other threads:[~2006-09-08 19:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-08 11:35 Michael Piotrowski
2006-09-08 12:05 ` Daiki Ueno
2006-09-08 14:12   ` Michael Piotrowski
2006-09-08 19:10     ` Daiki Ueno [this message]
2006-09-08 22:22       ` Michael Piotrowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f3109588-02c6-41c4-933c-8a7dc841b3fb@well-done.deisui.org \
    --to=ueno@unixuser.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).