From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: wahjava.ml@gmail.com (Ashish SHUKLA) Newsgroups: gmane.emacs.devel Subject: Re: Gnus + GPG integration broken after revision 102412. Date: Wed, 22 Dec 2010 04:21:29 +0530 Organization: alt.religion.emacs Message-ID: <867hf23fke.fsf@chateau.d.if> References: <868vzkbz8n.fsf@chateau.d.if> <86ei9bmlkm.fsf@chateau.d.if> <87y67jau81.fsf@hati.baby-gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1292971927 30190 80.91.229.12 (21 Dec 2010 22:52:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 21 Dec 2010 22:52:07 +0000 (UTC) Cc: Daiki Ueno , emacs-devel@gnu.org To: Daniel Dehennin Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 21 23:52:02 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PVB3k-0001up-GW for ged-emacs-devel@m.gmane.org; Tue, 21 Dec 2010 23:51:56 +0100 Original-Received: from localhost ([127.0.0.1]:59447 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVB3j-00017h-VD for ged-emacs-devel@m.gmane.org; Tue, 21 Dec 2010 17:51:55 -0500 Original-Received: from [140.186.70.92] (port=35449 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVB3d-00013Z-GS for emacs-devel@gnu.org; Tue, 21 Dec 2010 17:51:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PVB3c-00077t-Br for emacs-devel@gnu.org; Tue, 21 Dec 2010 17:51:49 -0500 Original-Received: from mail-pz0-f49.google.com ([209.85.210.49]:44731) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PVB3c-00077p-1j for emacs-devel@gnu.org; Tue, 21 Dec 2010 17:51:48 -0500 Original-Received: by pzk30 with SMTP id 30so1266664pzk.36 for ; Tue, 21 Dec 2010 14:51:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:from:to:cc :subject:organization:references:x-face:x-uptime:x-url :x-operating-system:x-openpgp-fingerprint:x-attribution:organisation :date:in-reply-to:message-id:user-agent:face:mime-version :content-type; bh=JMz0J7R8qjCGlDl3itxNDj7MvLPjhY8/Gdc4yfA2C0g=; b=FV0tUqOZkQLB+kL9w5GT94v+dT6mHBJZ0+j7jvhPAPbW5bNYD4CpSPgcFuZZ4C7a9q f8olmJOvHaOYgIvUTnERWX4qT8x+QJ+IQ3+2AxmIYrf1liNdLLlbDZpkKjMDgrcHJ3NV 42eqxpFCDLIswLzjozkYJ5kC7RDOabSU8bOXA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:organization:references:x-face:x-uptime :x-url:x-operating-system:x-openpgp-fingerprint:x-attribution :organisation:date:in-reply-to:message-id:user-agent:face :mime-version:content-type; b=CX3hP0aPcOYqjugX5IgLbBMrnUpZ4Nun1MhhyZb+KLEcLdmOP/KufI3u574EUVA0N9 CZuDaXos31rTKDRa7Od2wJkIUvfCbjCA4IU7pGWS4q0VXjyECS4ETMap20gzdHpf/IDQ MVWRcgyhKFUpWlPKOM4y1h8nuu/Ft43LVqLEE= Original-Received: by 10.142.217.14 with SMTP id p14mr4968379wfg.334.1292971906834; Tue, 21 Dec 2010 14:51:46 -0800 (PST) Original-Received: from chateau.d.if ([122.163.155.99]) by mx.google.com with ESMTPS id v19sm8188107wfh.0.2010.12.21.14.51.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 21 Dec 2010 14:51:45 -0800 (PST) Original-Received: from chateau.d.if (chateau.d.if [IPv6:::1]) by chateau.d.if (Postfix) with ESMTP id 3D0992D63DA; Wed, 22 Dec 2010 04:21:39 +0530 (IST) X-Face: )vGQ9yK7Y$Flebu1C>(B\gYBm)[$zfKM+p&TT[[JWl6:]S>cc$%-z7-`46Zf0B*syL.C]oCq[upTG~zuS0.$"_%)|Q@$hA=9{3l{%u^h3jJ^Zl; t7 X-Uptime: 03:57:15 up 2:32, 1 user, load average: 0.66, 0.85, 0.87 X-URL: http://762e5e74.wordpress.com/ X-Operating-System: GNU/Linux/Linux 2.6.36-ARCH/x86_64 X-OpenPGP-Fingerprint: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0 X-Attribution: =?utf-8?B?4KSG4KS24KWA4KS3?= Organisation: alt.religion.emacs In-Reply-To: <87y67jau81.fsf@hati.baby-gnu.org> (Daniel Dehennin's message of "Tue, 21 Dec 2010 18:53:02 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-unknown-linux-gnu) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJ1BMVEWpqal/f39tbW1jY2Md HR2goKCenp6UlJROTk7////9/f35+fnT09ORJdieAAACVklEQVQ4jXXUP2vbQBQA8AvUTkgz5OzY Z0iGWhpS6BSrkECn0mvx0MEJ6AjtYrfoBCVDlD8naJYmNlRfwZq8+mkKlIZaGpJSYmP7Q/XkJDrJ Td8i/H68u3vHPaPufwLdf32AMA4A6GcAgvAamY1pOJiDIFqicTwLswDhfr3uxfFtkAY/GFHPMwzD 8zpnACmIOnE6js7rQb+v4NJrG9od0C+QgpHMy5jBewV+UDSMWiw1Y4fWfyV7+NGFzDsYa3pth9LJ Q4XvXxFHcJRvHOmygn5NAEabnDcQQguarnfoiwSCJ99jmKKcphsZONmWsDK9Ro7cvZOCtQdg8nje egLhc2LNlkLmsezzTFUUy5w18ocox/f0LaLgJy0zO75zk+9pp85GAj36xjqhdI0y3tq2m4dqqcWX zQWBTz8L1irvolXV4J+3q7eCDgVnttjNq6X8H+9KOZsuNk1uCzx8pSp+E9HImfJOTLdcGqo+YKnG EIovizkEn48V7BO+ch2DXcD4ENSpWiU+q8hjjbgTBZCXnZtyj0Ws4Q1Q0B2WXFtYZo65Bbyeeldw RS6qFueM80LlLA29YlVwGRYvFD+kwI/0O+A2PlpOP9GwslUVciHuYGechuBTp922YiDZCrghTknm XSyOM+D3aoRZlo0Jb42zY7DN4p2x4AeZ+QAYutx1sHwTHzMT5cMNduQ9yW3GczN4KZ86kb0c9O8T yXDeFqpl2fryPEAYGXIlezAPXYh2NgVr/gvdoHIuDwuPwOhcWE8f8mmICq41eATkn8x0kuRTIKcB wE9+/QUtiiAnYcaN7wAAAABJRU5ErkJggg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133877 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Daniel Dehennin writes: > wahjava.ml@gmail.com (Ashish SHUKLA) writes: >> Daiki Ueno writes: >>> wahjava.ml@gmail.com (Ashish SHUKLA) writes: >>=20 >>>> I'm having problem sending GPG signed mails in Emacs bzr revision 1024= 640. >>>>=20 >>>> Debugger entered--Lisp error: (error "Sign failed: ((exit))") >>>> signal(error ("Sign failed: ((exit))")) >>=20 >>> Could you try again with (setq epg-debug t) and provide the contents of >>> buffer " *epg-debug*" (note that the first letter is a white space)? >> #v+ >> /usr/local/bin/gpg2 --no-tty --status-fd 1 --yes --use-agent --command-f= d 0 --armor --textmode --output /tmp/epg-output62957uOj --detach-sign -u 1F= 2F8410762E5E74 >> Warning: using insecure memory! >> gpg: skipped "1F2F8410762E5E74": Unusable secret key >> [GNUPG:] INV_SGNR 9 1F2F8410762E5E74 >> gpg: signing failed: Unusable secret key >> #v- >> The above mentioned key id belongs to my GPG key which I revoked, but it= 's >> still present in my system to decrypt old content encrypted with it. Any= ideas >> how I can switch to other GPG user ID (the one which is used to sign this >> email) ? >>=20 >>>> I've tracked it down to change in lisp/gnus/mml2015.el in >>>> r102412[1]. To be able to send GPG signed emails, I've to defun the >>>> "mml2015-epg-sign" function From revision 102411 of >>>> lisp/gnus/mml2015.el. >>=20 >>> Cc'ed Daniel, who is the author of that change. > Maybe you signed your email based on the default-key option in gpg.conf, > my change use the sender address in addition to mml2015-signers. "default-key" option in gpg.conf is present and points to the correct key, = but it is not working. > If you have more than one key for an e-mail address you may (setq > mm-sign-option 'guided) to choose which key to use. I've more than one keys, and in one of the keys, the UIDs are more than 10, which means the only 10 UIDs appear in the output of "gpg2 =2D-list-secret-keys", to retrieve list of all UIDs, you've to explicitly q= uery "gpg2 --list-secret-keys $KEYID". It would be nice to have a customizable variable (something like "pgg-default-user-id") which stores the default key id used for signing the messages. And, users with multiple keys should be able to override the key used for signing an email in the message buffer as well. > Another option may be to remove that email address from the key, it will > not be picked up for signing but still usable to decrypt? This could be done, but this looks like an ugly work around. :( Thanks =2D-=20 Ashish SHUKLA =E2=80=9CI am free, no matter what rules surround me. If I find them tolerable, I tolerate them; if I find them too obnoxious, I break them. I am free because I know that I alone am morally responsible for everything I do.=E2=80=9D (Robert A. Heinlein, "The Moon Is a Harsh Mistres= s", 1966) --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iQIcBAEBCgAGBQJNES97AAoJEMdGz6nnT6SwuO8P/A7TVaeftCTkwCdpJ3rSJijk Py0G/Gl1v/TxNoPIG6Gralid3zCb0YsF0G+syFTVwPaDBOQ7hEHmbw2K09pgBYQo dPt7AI7jP9CP5cmEADMP2JPsufjqcXSoSJ4GU7ewk7BKquJrleadB+1lhT6LeB00 H1arFnrPRyJkMAJkqZ5Me2yblnUxVWWAuaZ/9I+asVHqP6HLjwxeNW0qwOZF5k9H HpwokxQnBz5Fim5QtF8jlQVGBl+ro5gNatKwaXwZ6O/kJpS/qUdqd78bJ4UiyvM0 yyg63u0OWXju/feNJ04PxvnN9HzeupdYF6PJPv9uHt1l0uOXHrgfJ3ggNGIuWjv2 +fS8/7qePubZky/Oc9S5UaB0o7jmz34IuVYlnv+BgzphLk96qT7PQ8HDhNjiLbUx uc8FgDsNeKB6/Rza52Rf0A3obZ3n4+lPn5CH9AsNQ2Jh/l+YbN3nKaHGhhgGzI0Y LM8E40zb2QFb7i4WoGZcX+h+1U2+F4pwfVIgd/B19jco2N3bV+eVGfK4vna56vc+ 988BmpZXevRNS+SIov9za5/7zospheFI4WO19YPgl6X8ETMRCh9s3bt+feF+W0jf wHM6QFwOdD//IeI9PGdpMbpg/uAhJY42PWB3rKYbjwjE6MnrudJVNULqx98rKBbV VYUfeIj2jNCU4D7Qe0v0 =rWUn -----END PGP SIGNATURE----- --=-=-=--