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: Gnus + GPG integration broken after revision 102412. Date: Mon, 20 Dec 2010 14:24:48 +0530 Organization: alt.religion.emacs Message-ID: <868vzkbz8n.fsf@chateau.d.if> 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 1292835314 13878 80.91.229.12 (20 Dec 2010 08:55:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 20 Dec 2010 08:55:14 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 20 09:55:08 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 1PUbWN-0008CU-0u for ged-emacs-devel@m.gmane.org; Mon, 20 Dec 2010 09:55:08 +0100 Original-Received: from localhost ([127.0.0.1]:58549 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUbWM-0003TN-8h for ged-emacs-devel@m.gmane.org; Mon, 20 Dec 2010 03:55:06 -0500 Original-Received: from [140.186.70.92] (port=52104 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUbWG-0003TH-V4 for emacs-devel@gnu.org; Mon, 20 Dec 2010 03:55:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUbWF-0004dL-8B for emacs-devel@gnu.org; Mon, 20 Dec 2010 03:55:00 -0500 Original-Received: from mail-qy0-f176.google.com ([209.85.216.176]:37867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PUbWF-0004dG-4V for emacs-devel@gnu.org; Mon, 20 Dec 2010 03:54:59 -0500 Original-Received: by qyk10 with SMTP id 10so2532249qyk.0 for ; Mon, 20 Dec 2010 00:54:58 -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 :subject:organization:user-agent:x-face:x-uptime:x-url :x-operating-system:x-openpgp-fingerprint:x-attribution:organisation :face:date:message-id:mime-version:content-type; bh=7pOyZHDq4+wxyNjjyVPcvPIxg7vn4o5nOarzsLkWyYA=; b=bBo7nKHedXcVMHcR/zUhHoMS9a8Q20lSpyCKnSaa7tP5iJ12afBQAMNNyZO9wGjcPl oDqiHvbf5KTGPUVDMqt/MAwVttq2MvHXmF8e2KmNJOASmpsBwl+NjaPoMC0s6/AInld5 fGmFNzryv6zS8IqTqsiigBBGwxWJOW48sxK8o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:organization:user-agent:x-face:x-uptime :x-url:x-operating-system:x-openpgp-fingerprint:x-attribution :organisation:face:date:message-id:mime-version:content-type; b=U5iupKe7ri8XQ4Emqw141aKtWeMmk393Pu08n2CfnDMwSSgr+pBgAQ7zywI2aTl2CP Y4tVJqcDqcV4Gv/uADeUbvWJ/CAkZNaazTGmmAtXoMAbcpai2364a9KGgJ0ZSAENEIxB FbOj69qg2yTcEmljR4ZAZ8c+Z0guaFMlGRTDk= Original-Received: by 10.224.74.69 with SMTP id t5mr3806980qaj.356.1292835298083; Mon, 20 Dec 2010 00:54:58 -0800 (PST) Original-Received: from chateau.d.if ([122.163.158.159]) by mx.google.com with ESMTPS id q12sm2050410qcu.42.2010.12.20.00.54.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 20 Dec 2010 00:54:57 -0800 (PST) Original-Received: from chateau.d.if (chateau.d.if [IPv6:::1]) by chateau.d.if (Postfix) with ESMTP id 268274ACA6 for ; Mon, 20 Dec 2010 14:24:49 +0530 (IST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (amd64-portbld-freebsd8.1) 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: 2:11PM up 1:36, 2 users, load averages: 0.48, 0.40, 0.35 X-URL: http://762e5e74.wordpress.com/ X-Operating-System: FreeBSD/FreeBSD 8.1-RELEASE/amd64 X-OpenPGP-Fingerprint: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0 X-Attribution: =?utf-8?B?4KSG4KS24KWA4KS3?= Organisation: alt.religion.emacs 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:133827 Archived-At: --==-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, I'm having problem sending GPG signed mails in Emacs bzr revision 1024640. #v+ Debugger entered--Lisp error: (error "Sign failed: ((exit))") signal(error ("Sign failed: ((exit))")) (condition-case error (setq signature (epg-sign-string context (buffer-st= ring) t) mml2015-epg-secret-key-id-list nil) (error (while mml2015-epg-secr= et-key-id-list (password-cache-remove (car mml2015-epg-secret-key-id-list))= (setq mml2015-epg-secret-key-id-list (cdr mml2015-epg-secret-key-id-list))= ) (signal (car error) (cdr error)))) (let* ((inhibit-redisplay t) (context (epg-make-context)) (boundary (mml-= compute-boundary cont)) (sender (message-options-get (quote message-sender)= )) signer-key (signers (or (message-options-get (quote mml2015-epg-signers)= ) (message-options-set (quote mml2015-epg-signers) (if (eq mm-sign-option (= quote guided)) (epa-select-keys context "Select keys for signing.\nIf no on= e is selected, default secret key is used. " (cons sender mml2015-signers)= t) (if (or sender mml2015-signers) (delq nil ...)))))) signature micalg) (= epg-context-set-armor context t) (epg-context-set-textmode context t) (epg-= context-set-signers context signers) (if mml2015-cache-passphrase (epg-cont= ext-set-passphrase-callback context (function mml2015-epg-passphrase-callba= ck))) (condition-case error (setq signature (epg-sign-string context (buffe= r-string) t) mml2015-epg-secret-key-id-list nil) (error (while mml2015-epg-= secret-key-id-list (password-cache-remove (car mml2015-epg-secret-key-id-li= st)) (setq mml2015-epg-secret-key-id-list (cdr mml2015-epg-secret-key-id-li= st))) (signal (car error) (cdr error)))) (if (epg-context-result-for contex= t (quote sign)) (setq micalg (epg-new-signature-digest-algorithm (car (epg-= context-result-for context (quote sign)))))) (goto-char (point-min)) (inser= t (format "Content-Type: multipart/signed; boundary=3D\"%s\";\n" boundary))= (if micalg (insert (format " micalg=3Dpgp-%s; " (downcase (cdr (assq mical= g epg-digest-algorithm-alist)))))) (insert "protocol=3D\"application/pgp-si= gnature\"\n") (insert (format "\n--%s\n" boundary)) (goto-char (point-max))= (insert (format "\n--%s\n" boundary)) (insert "Content-Type: application/p= gp-signature\n\n") (insert signature) (goto-char (point-max)) (insert (form= at "--%s--\n" boundary)) (goto-char (point-max))) mml2015-epg-sign((part (sign . "pgpmime") (tag-location . 1722) (contents= . "\n-- \nAshish SHUKLA\n\n=E2=80=9CProgress doesn't come from early riser= s =E2=80=93 progress is made by lazy\nmen looking for easier ways to do thi= ngs.=E2=80=9D (Robert A. Heinlein, 1973)\n"))) mml2015-sign((part (sign . "pgpmime") (tag-location . 1722) (contents . "= \n-- \nAshish SHUKLA\n\n=E2=80=9CProgress doesn't come from early risers = =E2=80=93 progress is made by lazy\nmen looking for easier ways to do thing= s.=E2=80=9D (Robert A. Heinlein, 1973)\n"))) mml-pgpmime-sign-buffer((part (sign . "pgpmime") (tag-location . 1722) (c= ontents . "\n-- \nAshish SHUKLA\n\n=E2=80=9CProgress doesn't come from earl= y risers =E2=80=93 progress is made by lazy\nmen looking for easier ways to= do things.=E2=80=9D (Robert A. Heinlein, 1973)\n"))) mml-generate-mime-1((part (sign . "pgpmime") (tag-location . 1722) (conte= nts . "\n-- \nAshish SHUKLA\n\n=E2=80=9CProgress doesn't come from early ri= sers =E2=80=93 progress is made by lazy\nmen looking for easier ways to do = things.=E2=80=9D (Robert A. Heinlein, 1973)\n"))) mml-generate-mime() message-encode-message-body() message-send-mail(nil) message-send-via-mail(nil) message-send(nil) message-send-and-exit(nil) call-interactively(message-send-and-exit nil nil) #v- 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" functi= on From=20revision 102411 of lisp/gnus/mml2015.el. The GPG signing related customizations, which I'm using, are copied from GnusPGG page of EmacsWiki[2]: #v+ (require 'pgg) (setq pgg-default-user-id "wahjava") (eval-after-load "mm-decode" '(add-to-list 'mm-inlined-types "application/p= gp$")) (eval-after-load "mm-decode" '(add-to-list 'mm-inline-media-tests '("applic= ation/pgp$" mm-inline-text identity))) (eval-after-load "mm-decode" '(add-to-list 'mm-automatic-display "applicati= on/pgp$")) (eval-after-load "mm-decode" (quote (setq mm-automatic-display (remove "app= lication/pgp-signature" mm-automatic-display)))) #v- It seems to me that Gnus is now defaulting to EPG. The only EP{A,G} customization, I've is in my "~/.emacs.d/init.el" file: #v+ (require 'epg-config) (require 'epa) (eval-after-load "epa" (setq epa-armor t)) (setq epg-gpg-program (executable-find "gpg2")) #v- Any ideas how to fix this issue ? Or how to switch my Gnus configuration to use EPG, if EPG is supposed to work for me ? In case any other information is required please mention. References: [1] http://bazaar.launchpad.net/~vcs-imports/emacs/trunk/revision/102412#l= isp/gnus/mml2015.el [2] http://www.emacswiki.org/emacs/GnusPGG TiA =2D-=20 Ashish SHUKLA =E2=80=9CReal Programmers always confuse Christmas and Halloween because Oc= t31 =3D=3D Dec25.=E2=80=9D (Andrew Rutherford) --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iQIcBAEBCgAGBQJNDxnYAAoJEMdGz6nnT6SwHN4P/1MxK1u7LCM+uUvLZQ3pfncm uzdlIwmGO7jGxM4XMzMtazNHLS7viqL3VgNmx41n2DKVJWCivkhqlleX/aJrFDia /hej7V4BdRK1zeyqwOt0GDflkuFKINObs+b1xaTcE2nYnsgknU1VlRbYabnPiB13 +ORD4pJ94ewtbbXahyq9zUD1urxxr+ubUAAf2PB+DluQ+ZaB288gEpbku/BJ4jHm uzgSVDr2/YDOD6bR2wAH+hNaOOFqcrK8mVUS5MzqueZuZyclOjIRJGeyRwuX0g5j DYwqqs6erOqEJa3WVdEPYj9Hhk2etIcBtB4drgMcTMlADPRl+DSU42dDr9hNxqqL hd6NAiVW4449k5TTK255wn6hgOMsg8nGEsP1OVuMuWRsK18YeCq7lAYRhcgiLNzp cI2XZoPAQtcV9eB0h3MAlT9QnJHm/xDBp3k1ZQizCUUc1yvXzGfYSljHgh7uuFWz CbyI6MDnu8xUsyfTbHxPfhYFhyWy3jI49WBqbggMW5shl4cTo7/gEKChOcRjeTfK butbBSB4qpKs6CSShWawSwzyXRhW0oJ/N8A2Ke873fCHGLMWgKIt0mTQsUvECrb5 ouNp8ZAYnfKzB60agqZiHYK9jcCAzQfgdKHIhx5Sy5oJmCPNKcvQDQGjtFVVinlM AcAR9ROJQscasuc0PIon =SdMl -----END PGP SIGNATURE----- --==-=-=--