From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/52318 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: I have to enter my passphrase twice? Date: Mon, 05 May 2003 17:55:29 +0200 Sender: ding-owner@lists.math.uh.edu Message-ID: References: <878ytlpit9.fsf@pooh.honeypot.net> <873cjt5te4.fsf@pooh.honeypot.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1052151863 30939 80.91.224.249 (5 May 2003 16:24:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 5 May 2003 16:24:23 +0000 (UTC) Cc: ding@hpc.uh.edu Original-X-From: ding-owner+M860@lists.math.uh.edu Mon May 05 18:24:10 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19CiIc-0005Ux-00 for ; Mon, 05 May 2003 17:54:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19CiJb-0000UZ-00; Mon, 05 May 2003 10:55:43 -0500 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=root) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 19CiJT-0000UT-00 for ding@lists.math.uh.edu; Mon, 05 May 2003 10:55:35 -0500 Original-Received: from yxa.extundo.com (178.230.13.217.in-addr.dgcsystems.net [217.13.230.178]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id KAA11008 for ; Mon, 5 May 2003 10:56:44 -0500 (CDT) Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) by yxa.extundo.com (8.12.9/8.12.9) with ESMTP id h45FtTbT013505; Mon, 5 May 2003 17:55:29 +0200 Original-To: Kirk Strauser Mail-Copies-To: nobody X-Payment: hashcash 1.2 0:030505:kirk@strauser.com:b8058225ed9e7dd0 X-Hashcash: 0:030505:kirk@strauser.com:b8058225ed9e7dd0 X-Payment: hashcash 1.2 0:030505:ding@hpc.uh.edu:4f312626cad2177d X-Hashcash: 0:030505:ding@hpc.uh.edu:4f312626cad2177d In-Reply-To: <873cjt5te4.fsf@pooh.honeypot.net> (Kirk Strauser's message of "Mon, 05 May 2003 10:02:11 -0500") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/20.7 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:52318 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:52318 Kirk Strauser writes: > At 2003-05-05T14:30:26Z, Kirk Strauser writes: > >> As of recent, I have to enter my GnuPG passphrase twice when signing >> outgoing messages. > > OK, I've narrowed down the trigger behavior slightly. It happens when I use > "<#secure method=pgp mode=sign>" to sign my email (instead of > "method=pgpmime"). When I hit C-c C-c to send my message, I get: > > GnuPG passphrase for kirk@strauser.com: > > After I enter it, I see: > > Sending via mail... > > flash briefly across the minibuffer. Then I get a second prompt: > > GnuPG passphrase for kirk@strauser.com: > > and only after I correctly re-enter my passphrase do I get the "Message > sent" message. > > The supremely annoying part is that if I mis-enter my passphrase at the > second prompt, which I sometimes do because it's a fairly long phrase, then > the message gets sent twice. Do you use GCC? Perhaps the message that is mailed is signed correctly, but the second signature (for GCC) fails, and the GCC code doesn't signal an error. Can you look in your GCC group? > Finally, I've set pgg-default-user-id to "8D02A6F1", which is the > fingerprint for my key. Why is it now sometimes prompting for the key for > "kirk@strauser.com", which is something it had never done before? This problem should be fixed by the patch below. Please try it and tell if it works or not. Index: mml1991.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/mml1991.el,v retrieving revision 6.22 diff -u -p -u -w -r6.22 mml1991.el --- mml1991.el 2 May 2003 17:55:20 -0000 6.22 +++ mml1991.el 5 May 2003 15:54:17 -0000 @@ -234,7 +234,7 @@ (delete-region (point-min) (point))) (quoted-printable-decode-region (point-min) (point-max)) (unless (let ((pgg-default-user-id - (or (message-options-get 'message-sender) + (or (message-options-get 'mml-sender) pgg-default-user-id))) (pgg-sign-region (point-min) (point-max) t)) (pop-to-buffer pgg-errors-buffer)