From unknown Sat Sep 06 07:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7797: 24.0.50; [EasyPG/Gnus] always pick up the first key from `gpg --list-key $SENDER` Resent-From: Luca Capello Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: rfrancoise@debian.org, bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Jan 2011 23:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7797 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 7797@debbugs.gnu.org Cc: rfrancoise@debian.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: rfrancoise@debian.org Received: via spool by submit@debbugs.gnu.org id=B.129435623526014 (code B ref -1); Thu, 06 Jan 2011 23:24:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Jan 2011 23:23:55 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PazBS-0006lW-I8 for submit@debbugs.gnu.org; Thu, 06 Jan 2011 18:23:55 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PazAv-0006kZ-J0 for submit@debbugs.gnu.org; Thu, 06 Jan 2011 18:23:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PazHv-0007yj-8q for submit@debbugs.gnu.org; Thu, 06 Jan 2011 18:30:36 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE autolearn=no version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:60765) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PazHv-0007yb-3t for submit@debbugs.gnu.org; Thu, 06 Jan 2011 18:30:35 -0500 Received: from [140.186.70.92] (port=40674 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PazHt-0006YO-1W for bug-gnu-emacs@gnu.org; Thu, 06 Jan 2011 18:30:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PazHq-0007xI-U5 for bug-gnu-emacs@gnu.org; Thu, 06 Jan 2011 18:30:32 -0500 Received: from [151.1.160.141] (port=53327 helo=clio.genesi.eu) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PazHq-0007wS-HN for bug-gnu-emacs@gnu.org; Thu, 06 Jan 2011 18:30:30 -0500 Received: from localhost (localhost [127.0.0.1]) by clio.genesi.eu (Postfix) with ESMTP id 83066CF3DE for ; Fri, 7 Jan 2011 00:30:27 +0100 (CET) X-Virus-Scanned: amavisd-new at genesi.eu Received: from clio.genesi.eu ([127.0.0.1]) by localhost (clio.genesi.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xW3BK92JNn5n for ; Fri, 7 Jan 2011 00:30:27 +0100 (CET) Received: from mantissa.pca.it (ip-85-135.sn2.eutelia.it [83.211.85.135]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by clio.genesi.eu (Postfix) with ESMTPS id 40B5CCAC3C for ; Fri, 7 Jan 2011 00:30:27 +0100 (CET) Received: from gismo.pca.it (162-152.78-83.cust.bluewin.ch [83.78.152.162]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mantissa.pca.it (Postfix) with ESMTPSA id 7C43022164 for ; Fri, 7 Jan 2011 00:30:26 +0100 (CET) Received: by gismo.pca.it (Postfix, from userid 1000) id 60EF62BFD8; Fri, 7 Jan 2011 00:30:23 +0100 (CET) From: Luca Capello Date: Fri, 07 Jan 2011 00:30:18 +0100 Message-ID: <874o9lehkl.fsf@gismo.pca.it> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -6.6 (------) X-Mailman-Approved-At: Thu, 06 Jan 2011 18:23:54 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi there! Since more than a month, now, actually since the upgrade from the Debian package emacs-snapshot 1:20101116-1 to 1:20101120-1 (which I did on 2010-11-23 at 14:50 +0100), EasyPG is not working anymore with Gnus. I am sorry for the delay in this bug report, but I did not find the time before to debug it and switched back to PGG instead. BTW, now that the emacs-snapshot package is no more updated, I will go back to the Debian emacs23 package. If you need me to test something, please say so and I could even compile a Git snapshot, if needed. This bug can be reproduced with the following minimal ~/.emacs: =2D-8<---------------cut here---------------start------------->8--- (setq debug-on-error t) (setq epg-debug t) (add-hook 'gnus-message-setup-hook 'epa-mail-mode) (add-hook 'gnus-message-setup-hook 'mml-secure-message-sign-pgpmime) (setq gnus-select-method '(nnnil)) =2D-8<---------------cut here---------------end--------------->8--- Here the debug error, which unfortunately is useless: =3D=3D=3D=3D=3D Debugger entered--Lisp error: (error "Sign failed: ((exit))") signal(error ("Sign failed: ((exit))")) byte-code("[...]" [mml2015-epg-secret-key-id-list error password-cache-re= move signal] 4) mml2015-epg-sign((part (sign . "pgpmime") (tag-location . 271) (contents = . "test\n"))) mml2015-sign((part (sign . "pgpmime") (tag-location . 271) (contents . "t= est\n"))) mml-pgpmime-sign-buffer((part (sign . "pgpmime") (tag-location . 271) (co= ntents . "test\n"))) mml-generate-mime-1((part (sign . "pgpmime") (tag-location . 271) (conten= ts . "test\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) =3D=3D=3D=3D=3D Thanks to the ` *epg-debug*' buffer, the problem is clear: =3D=3D=3D=3D=3D /usr/bin/gpg --no-tty --status-fd 1 --yes --command-fd 0 --armor \ --textmode --output /tmp/epg-output5441TZj --detach-sign \ -u 8D3867D89DDB992B gpg: skipped "8D3867D89DDB992B": unusable secret key gpg: signing failed: unusable secret key =3D=3D=3D=3D=3D What the hell? Why EasyPG is specyfing a key and not relying on my ~/.gnupg/gpg.conf, which is *correct*? =3D=3D=3D=3D=3D luca@gismo:~$ gpg --version gpg (GnuPG) 1.4.10 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Home: ~/.gnupg Supported algorithms: Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128,=20 CAMELLIA192, CAMELLIA256 Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224 Compression: Uncompressed, ZIP, ZLIB, BZIP2 luca@gismo:~$ gpg --list-key luca@pca.it pub 1024D/9DDB992B 2007-06-08 [revoked: 2010-01-01] uid Luca Capello uid Luca Capello pub 1024D/6D742669 2003-11-09 [revoked: 2005-07-22] uid Luca Capello uid Luca Capello uid Luca Capello uid Luca Capello uid Luca Capello uid Luca Capello uid Luca Capello uid Luca Capello uid Luca Capello pub 4096R/E397832F 2009-07-01 uid Luca Capello uid Luca Capello sub 4096R/3BE9F36D 2009-07-01 sub 4096R/2BB95F4B 2009-07-01 luca@gismo:~$ cat ~/.gnupg/gpg.conf personal-digest-preferences SHA512 cert-digest-algo SHA512 default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5= ZLIB BZIP2 ZIP Uncompressed hidden-encrypt-to 3BE9F36D! hidden-encrypt-to 2BB95F4B! default-recipient 3BE9F36D! default-recipient 2BB95F4B! default-key E397832F list-options show-sig-expire display-charset UTF-8 trust-model auto keyserver hkps://keys.indymedia.org keyserver-options ca-cert-file=3D/etc/ssl/certs/cacert.org.pem luca@gismo:~$=20 =3D=3D=3D=3D=3D FYI, I do not know why the order of the --list-key option is that one (the three secret keys are there as well), but it is still the same with GnuPG-2. I looked into the Git repository and I found the faulty commit: commit 9515b7dbfaa1e68fb72c323a45120f77362c7324 Author: Daniel Dehennin Date: Tue Nov 16 23:05:02 2010 +0000 mml2015-epg-sign: Use From header. mml2015.el (mml2015-epg-sign): New variable 'sender' is (message-options-get 'message-sender) and append it to mml2015-signers. If mm-sign-option is not 'guided, mml2015-signers and sender sign the = mail. What is the reason of this change? If I want to sign with another key, independent of the From header, I should be able to do so, *automatically*, thus without any extra choice when sending the email. My ~/.gnupg/gpg.conf allows that, EasyPG/Gnus does not. Obviously, even setting `mml2015-signers' does not solve the problem: because now EasyPG tries to sign with two keys. The debug error is the same as above (useless), again the ` *epg-debug*' buffer contains the answer: =3D=3D=3D=3D=3D /usr/bin/gpg --no-tty --status-fd 1 --yes --command-fd 0 --armor \ --textmode --output /tmp/epg-output5441Qsz --detach-sign \ -u 8D3867D89DDB992B -u 06EAA066E397832F [GNUPG:] USERID_HINT D91D57A03BE9F36D Luca Capello [GNUPG:] NEED_PASSPHRASE D91D57A03BE9F36D 06EAA066E397832F 1 0 [GNUPG:] GET_HIDDEN passphrase.enter [GNUPG:] GOT_IT [GNUPG:] GOOD_PASSPHRASE gpg: skipped "8D3867D89DDB992B": unusable secret key gpg: signing failed: unusable secret key =3D=3D=3D=3D=3D FTR, if I go back to the `mml2015-sign' version before the commit above, everything is fine. Please note, however, the output in the ` *epg-debug*' buffer: =3D=3D=3D=3D=3D /usr/bin/gpg --no-tty --status-fd 1 --yes --command-fd 0 --armor \ --textmode --output /tmp/epg-output5441cKP --detach-sign [GNUPG:] USERID_HINT D91D57A03BE9F36D Luca Capello [GNUPG:] NEED_PASSPHRASE D91D57A03BE9F36D 06EAA066E397832F 1 0 [GNUPG:] GET_HIDDEN passphrase.enter [GNUPG:] GOT_IT [GNUPG:] GOOD_PASSPHRASE [GNUPG:] BEGIN_SIGNING [GNUPG:] SIG_CREATED D 1 10 01 1294352394 139121880F512EC2E6A464D3D91D57A03= BE9F36D /usr/bin/gpg --no-tty --status-fd 1 --yes --command-fd 0 --armor \ --textmode --output /tmp/epg-output5441pUV --detach-sign [GNUPG:] USERID_HINT D91D57A03BE9F36D Luca Capello [GNUPG:] NEED_PASSPHRASE D91D57A03BE9F36D 06EAA066E397832F 1 0 [GNUPG:] GET_HIDDEN passphrase.enter [GNUPG:] GOT_IT [GNUPG:] GOOD_PASSPHRASE [GNUPG:] BEGIN_SIGNING [GNUPG:] SIG_CREATED D 1 10 01 1294352397 139121880F512EC2E6A464D3D91D57A03= BE9F36D =3D=3D=3D=3D=3D The GnuPG invocation will respect my ~/.gnupg/gpg.conf (which is, again, the expected behavior), given that there is no -u option specified. Thx, bye, Gismo / Luca If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/share/emacs/24.0.50/etc/DEBUG. In GNU Emacs 24.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-12-13 on elegiac, modified by Debian (emacs-snapshot package, version 1:20101212-2) configured using `configure '--build' 'x86_64-linux-gnu' '--host' \ 'x86_64-linux-gnu' '--prefix=3D/usr' '--sharedstatedir=3D/var/lib' \ '--libexecdir=3D/usr/lib' '--localstatedir=3D/var' '--infodir=3D/usr/share= /info' \ '--mandir=3D/usr/share/man' '--with-pop=3Dyes' \ '--enable-locallisppath=3D/etc/emacs-snapshot:/etc/emacs:\ /usr/local/share/emacs/24.0.50/site-lisp:/usr/local/share/emacs/site-lisp= : \ /usr/share/emacs/24.0.50/site-lisp:/usr/share/emacs/site-lisp' \ '--without-compress-info' '--with-x=3Dyes' '--with-x-toolkit=3Dgtk' \ '--with-imagemagick=3Dyes' 'build_alias=3Dx86_64-linux-gnu' \ 'host_alias=3Dx86_64-linux-gnu' 'CFLAGS=3D-DDEBIAN -DSITELOAD_PURESIZE_EXT= RA=3D5000 \ -g -O2' 'LDFLAGS=3D-g -Wl,--as-needed' 'CPPFLAGS=3D'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Message Minor modes in effect: epa-mail-mode: t gnus-message-citation-mode: t mml-mode: t gpm-mouse-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: ESC x g n u s RET m l u c a @ l o c a l h o s t C-n=20 t e s t C-n C-n C-n C-n C-n t e s t RET C-c C-c y q=20 ESC x r e p o r t - e m TAB RET Recent messages: Opening nnfolder server on archive...done Reading active file from archive via nnfolder...done No new newsgroups Checking new news...done Setting up drafts group Warning: Setting up drafts group Address `luca@localhost' might be bogus. Continue? (y or n) y Sending... Entering debugger... Back to top level. Load-path shadows: /usr/share/emacs/24.0.50/site-lisp/auctex/tex-fold hides /usr/share/emacs/s= ite-lisp/auctex/tex-fold /usr/share/emacs/24.0.50/site-lisp/auctex/tex-jp hides /usr/share/emacs/sit= e-lisp/auctex/tex-jp /usr/share/emacs/24.0.50/site-lisp/auctex/tex-font hides /usr/share/emacs/s= ite-lisp/auctex/tex-font /usr/share/emacs/24.0.50/site-lisp/auctex/texmathp hides /usr/share/emacs/s= ite-lisp/auctex/texmathp /usr/share/emacs/24.0.50/site-lisp/auctex/toolbar-x hides /usr/share/emacs/= site-lisp/auctex/toolbar-x /usr/share/emacs/24.0.50/site-lisp/auctex/tex-buf hides /usr/share/emacs/si= te-lisp/auctex/tex-buf /usr/share/emacs/24.0.50/site-lisp/auctex/tex-info hides /usr/share/emacs/s= ite-lisp/auctex/tex-info /usr/share/emacs/24.0.50/site-lisp/auctex/tex-mik hides /usr/share/emacs/si= te-lisp/auctex/tex-mik /usr/share/emacs/24.0.50/site-lisp/auctex/context-nl hides /usr/share/emacs= /site-lisp/auctex/context-nl /usr/share/emacs/24.0.50/site-lisp/auctex/tex-fptex hides /usr/share/emacs/= site-lisp/auctex/tex-fptex /usr/share/emacs/24.0.50/site-lisp/auctex/multi-prompt hides /usr/share/ema= cs/site-lisp/auctex/multi-prompt /usr/share/emacs/24.0.50/site-lisp/auctex/tex-style hides /usr/share/emacs/= site-lisp/auctex/tex-style /usr/share/emacs/24.0.50/site-lisp/auctex/font-latex hides /usr/share/emacs= /site-lisp/auctex/font-latex /usr/share/emacs/24.0.50/site-lisp/auctex/bib-cite hides /usr/share/emacs/s= ite-lisp/auctex/bib-cite /usr/share/emacs/24.0.50/site-lisp/auctex/tex hides /usr/share/emacs/site-l= isp/auctex/tex /usr/share/emacs/24.0.50/site-lisp/auctex/context hides /usr/share/emacs/si= te-lisp/auctex/context /usr/share/emacs/24.0.50/site-lisp/auctex/tex-bar hides /usr/share/emacs/si= te-lisp/auctex/tex-bar /usr/share/emacs/24.0.50/site-lisp/auctex/latex hides /usr/share/emacs/site= -lisp/auctex/latex /usr/share/emacs/24.0.50/site-lisp/auctex/context-en hides /usr/share/emacs= /site-lisp/auctex/context-en /usr/share/emacs-snapshot/site-lisp/psgml/psgml hides /usr/share/emacs/site= -lisp/psgml/psgml /usr/share/emacs-snapshot/site-lisp/psgml/psgml-other hides /usr/share/emac= s/site-lisp/psgml/psgml-other /usr/share/emacs-snapshot/site-lisp/psgml/psgml-init hides /usr/share/emacs= /site-lisp/psgml/psgml-init /usr/share/emacs-snapshot/site-lisp/psgml/psgml-sysdep hides /usr/share/ema= cs/site-lisp/psgml/psgml-sysdep /usr/share/emacs-snapshot/site-lisp/psgml/psgml-html hides /usr/share/emacs= /site-lisp/psgml/psgml-html /usr/share/emacs/24.0.50/site-lisp/debian-startup hides /usr/share/emacs/si= te-lisp/debian-startup /usr/local/share/emacs/site-lisp/fortune hides /usr/share/emacs/24.0.50/lis= p/play/fortune /usr/share/emacs-snapshot/site-lisp/emms/tq hides /usr/share/emacs/24.0.50/= lisp/emacs-lisp/tq Features: (shadow emacsbug help-mode view debug mail-extr sort epa-mail epa derived epg gnus-cite nnfolder nndraft nnmh nnnil gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 epg-config mm-view smime password-cache dig mailcap nntp proto-stream starttls tls gnus-cache nnir gnus-sum macroexp nnoo gnus-group time-date gnus-undo nnmail mail-source format-spec gnus-start gnus-spec gnus-int gnus-range message sendmail regexp-opt rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems nnheader gnus-util mail-utils mm-util mail-prsvr wid-edit t-mouse planner-autoloads debian-el debian-el-loaddefs w3m-load psgml-init muse-autoloads emms-auto emacs-goodies-el emacs-goodies-custom emacs-goodies-loaddefs easy-mmode dpkg-dev-el dpkg-dev-el-loaddefs bbdb-autoloads preview-latex tex-site auto-loads tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBCgAGBQJNJlCKAAoJENkdV6A76fNtp0YQAJpTERqpXOR6Y2u7mogMx2L8 eHBjAI5tRM6uk0tqTU6gWFUVR6lhemmbmLmUdAjwOJMLbYIKJQhav0zjHUUXNhgR AID7aCa+FZlpPE8evNTzc3+eGtHtJpDci9TrFp1PDp0Gj5l8/LB1eY9EbWvjoTJo 92mCPCOtqHe/cSs6p1GdynIEDvdFtbRVgKNHE7TvO5CTukSUMFwFajW5fYoziBAo /a/eSLwnsFIYl03PPTRujNOhRie3LrdsSIvl7ozVOlYbmtAFMerQ68HuidD34j8u xlSEnQEXGwYEEYW/Ii7U7iHoHyKYOk6WSDDiWYvDrpmZvDGgsOGB15iPtn6psa+t rGUecpeEf2RbdTvDE/ynWnm1y9FQAx5JrmnnkikreuZD11/DRB3j1gBrniknzV+t L0jW99JMEygODokb2vpUFWePv5ahg/6D/62lbAlKmE21IwSRf3spNWQYokGZ767r Exx0JGlreca2n7UGY4SaGhOsi+CEA0gzCtumAVX3kxCZrZi4nqopW6zwptb0v+Po QwfNFqQ3vqWrsfo/3xaozjMy+GU46HZZzyh/Rg7C4uI/YxxKF8hSLIGeW0M7nnnK sBJD0ZOp7evqlQO7zwSiTHdqyYEwGt516WZKjWl2bt25AtcptODuZ8oU5kgrhN17 SM25G9YVCCZIB14E8m1u =nhlb -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Sep 06 07:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7797: 24.0.50; [EasyPG/Gnus] always pick up the first key from `gpg --list-key $SENDER` Resent-From: Daiki Ueno Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Fri, 07 Jan 2011 01:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7797 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Luca Capello Cc: rfrancoise@debian.org, 7797@debbugs.gnu.org Received: via spool by 7797-submit@debbugs.gnu.org id=B7797.12943654218836 (code B ref 7797); Fri, 07 Jan 2011 01:57:02 +0000 Received: (at 7797) by debbugs.gnu.org; 7 Jan 2011 01:57:01 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pb1Zd-0002IR-9z for submit@debbugs.gnu.org; Thu, 06 Jan 2011 20:57:01 -0500 Received: from ivory4.scn-net.ne.jp ([219.117.176.192]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Pb1ZZ-0002I9-3c for 7797@debbugs.gnu.org; Thu, 06 Jan 2011 20:56:58 -0500 Received: from ([192.168.0.187]) (envelope sender: ) by ivory4.scn-net.ne.jp with Active!Hunter esmtp server; Fri, 7 Jan 2011 11:04:10 +0900 Received: Received: from well-done.deisui.org (g187018.scn-net.ne.jp [202.83.187.18]) (authenticated) by blue17.scn-net.ne.jp (unknown) with ESMTP id p07247bO028237; Fri, 7 Jan 2011 11:04:09 +0900 Message-ID: From: Daiki Ueno References: <874o9lehkl.fsf@gismo.pca.it> Date: Fri, 07 Jan 2011 11:04:03 +0900 In-Reply-To: <874o9lehkl.fsf@gismo.pca.it> (Luca Capello's message of "Fri, 07 Jan 2011 00:30:18 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.0 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) Hi, Luca Capello writes: > gpg: skipped "8D3867D89DDB992B": unusable secret key > gpg: signing failed: unusable secret key You may want to try the patch I posted last month: http://lists.gnu.org/archive/html/emacs-devel/2010-12/msg00624.html Although this patch is a workaround, I'm going to push it for the time being. > I looked into the Git repository and I found the faulty commit: > > mml2015-epg-sign: Use From header. > > What is the reason of this change? If I want to sign with another key, > independent of the From header, I should be able to do so, > *automatically*, thus without any extra choice when sending the email. > My ~/.gnupg/gpg.conf allows that, EasyPG/Gnus does not. Quite a few users expect that Gnus/GPG pick a key matching the From header automatically - me too, I use different keys at work and home :) Regards, -- Daiki Ueno From unknown Sat Sep 06 07:59:05 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Luca Capello Subject: bug#7797: closed (Re: bug#7797: 24.0.50; [EasyPG/Gnus] always pick up the first key from `gpg --list-key $SENDER`) Message-ID: References: <874o9lehkl.fsf@gismo.pca.it> X-Gnu-PR-Message: they-closed 7797 X-Gnu-PR-Package: emacs,gnus Reply-To: 7797@debbugs.gnu.org Date: Fri, 07 Jan 2011 09:28:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1294392482-12771-1" This is a multi-part message in MIME format... ------------=_1294392482-12771-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #7797: 24.0.50; [EasyPG/Gnus] always pick up the first key from `gpg --list= -key $SENDER` which was filed against the emacs,gnus package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 7797@debbugs.gnu.org. --=20 7797: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D7797 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1294392482-12771-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 7797-done) by debbugs.gnu.org; 7 Jan 2011 09:27:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pb8c2-0003Jk-EY for submit@debbugs.gnu.org; Fri, 07 Jan 2011 04:27:58 -0500 Received: from ivory4.scn-net.ne.jp ([219.117.176.192]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Pb8bz-0003JU-6S for 7797-done@debbugs.gnu.org; Fri, 07 Jan 2011 04:27:56 -0500 Received: from ([192.168.0.187]) (envelope sender: ) by ivory4.scn-net.ne.jp with Active!Hunter esmtp server; Fri, 7 Jan 2011 18:35:08 +0900 Received: Received: from well-done.deisui.org (g187018.scn-net.ne.jp [202.83.187.18]) (authenticated) by blue17.scn-net.ne.jp (unknown) with ESMTP id p079Z7wN020016; Fri, 7 Jan 2011 18:35:08 +0900 Message-ID: From: Daiki Ueno To: Luca Capello Subject: Re: bug#7797: 24.0.50; [EasyPG/Gnus] always pick up the first key from `gpg --list-key $SENDER` References: <874o9lehkl.fsf@gismo.pca.it> Date: Fri, 07 Jan 2011 18:34:59 +0900 In-Reply-To: (Daiki Ueno's message of "Fri, 07 Jan 2011 11:04:03 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 7797-done Cc: rfrancoise@debian.org, 7797-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) Daiki Ueno writes: > Luca Capello writes: > >> gpg: skipped "8D3867D89DDB992B": unusable secret key >> gpg: signing failed: unusable secret key > > You may want to try the patch I posted last month: > http://lists.gnu.org/archive/html/emacs-devel/2010-12/msg00624.html > > Although this patch is a workaround, I'm going to push it for the time > being. OK, I fixed this in a better way (r102771). My test case is: $ mv .gnupg .gnupg.bak $ gpg --gen-key # create a key foo@example.com $ gpg --gen-key # create a key bar@example.com $ gpg --gen-key # create a key baz@example.com $ gpg --edit-key foo@example.com # revoke foo@example.com $ gpg --delete-secret-key bar@example.com (mml2015-epg-find-usable-secret-key (epg-make-context 'OpenPGP) "foo@example.com" 'sign) => nil (mml2015-epg-find-usable-secret-key (epg-make-context 'OpenPGP) "bar@example.com" 'sign) => nil (mml2015-epg-find-usable-secret-key (epg-make-context 'OpenPGP) "baz@example.com" 'sign) => (epg-key . ...) Regards, -- Daiki Ueno ------------=_1294392482-12771-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 6 Jan 2011 23:23:55 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PazBS-0006lW-I8 for submit@debbugs.gnu.org; Thu, 06 Jan 2011 18:23:55 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PazAv-0006kZ-J0 for submit@debbugs.gnu.org; Thu, 06 Jan 2011 18:23:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PazHv-0007yj-8q for submit@debbugs.gnu.org; Thu, 06 Jan 2011 18:30:36 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE autolearn=no version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:60765) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PazHv-0007yb-3t for submit@debbugs.gnu.org; Thu, 06 Jan 2011 18:30:35 -0500 Received: from [140.186.70.92] (port=40674 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PazHt-0006YO-1W for bug-gnu-emacs@gnu.org; Thu, 06 Jan 2011 18:30:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PazHq-0007xI-U5 for bug-gnu-emacs@gnu.org; Thu, 06 Jan 2011 18:30:32 -0500 Received: from [151.1.160.141] (port=53327 helo=clio.genesi.eu) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PazHq-0007wS-HN for bug-gnu-emacs@gnu.org; Thu, 06 Jan 2011 18:30:30 -0500 Received: from localhost (localhost [127.0.0.1]) by clio.genesi.eu (Postfix) with ESMTP id 83066CF3DE for ; Fri, 7 Jan 2011 00:30:27 +0100 (CET) X-Virus-Scanned: amavisd-new at genesi.eu Received: from clio.genesi.eu ([127.0.0.1]) by localhost (clio.genesi.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xW3BK92JNn5n for ; Fri, 7 Jan 2011 00:30:27 +0100 (CET) Received: from mantissa.pca.it (ip-85-135.sn2.eutelia.it [83.211.85.135]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by clio.genesi.eu (Postfix) with ESMTPS id 40B5CCAC3C for ; Fri, 7 Jan 2011 00:30:27 +0100 (CET) Received: from gismo.pca.it (162-152.78-83.cust.bluewin.ch [83.78.152.162]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mantissa.pca.it (Postfix) with ESMTPSA id 7C43022164 for ; Fri, 7 Jan 2011 00:30:26 +0100 (CET) Received: by gismo.pca.it (Postfix, from userid 1000) id 60EF62BFD8; Fri, 7 Jan 2011 00:30:23 +0100 (CET) From: Luca Capello To: bug-gnu-emacs@gnu.org Subject: 24.0.50; [EasyPG/Gnus] always pick up the first key from `gpg --list-key $SENDER` X-Debbugs-Cc: rfrancoise@debian.org Date: Fri, 07 Jan 2011 00:30:18 +0100 Message-ID: <874o9lehkl.fsf@gismo.pca.it> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 06 Jan 2011 18:23:54 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi there! Since more than a month, now, actually since the upgrade from the Debian package emacs-snapshot 1:20101116-1 to 1:20101120-1 (which I did on 2010-11-23 at 14:50 +0100), EasyPG is not working anymore with Gnus. I am sorry for the delay in this bug report, but I did not find the time before to debug it and switched back to PGG instead. BTW, now that the emacs-snapshot package is no more updated, I will go back to the Debian emacs23 package. If you need me to test something, please say so and I could even compile a Git snapshot, if needed. This bug can be reproduced with the following minimal ~/.emacs: =2D-8<---------------cut here---------------start------------->8--- (setq debug-on-error t) (setq epg-debug t) (add-hook 'gnus-message-setup-hook 'epa-mail-mode) (add-hook 'gnus-message-setup-hook 'mml-secure-message-sign-pgpmime) (setq gnus-select-method '(nnnil)) =2D-8<---------------cut here---------------end--------------->8--- Here the debug error, which unfortunately is useless: =3D=3D=3D=3D=3D Debugger entered--Lisp error: (error "Sign failed: ((exit))") signal(error ("Sign failed: ((exit))")) byte-code("[...]" [mml2015-epg-secret-key-id-list error password-cache-re= move signal] 4) mml2015-epg-sign((part (sign . "pgpmime") (tag-location . 271) (contents = . "test\n"))) mml2015-sign((part (sign . "pgpmime") (tag-location . 271) (contents . "t= est\n"))) mml-pgpmime-sign-buffer((part (sign . "pgpmime") (tag-location . 271) (co= ntents . "test\n"))) mml-generate-mime-1((part (sign . "pgpmime") (tag-location . 271) (conten= ts . "test\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) =3D=3D=3D=3D=3D Thanks to the ` *epg-debug*' buffer, the problem is clear: =3D=3D=3D=3D=3D /usr/bin/gpg --no-tty --status-fd 1 --yes --command-fd 0 --armor \ --textmode --output /tmp/epg-output5441TZj --detach-sign \ -u 8D3867D89DDB992B gpg: skipped "8D3867D89DDB992B": unusable secret key gpg: signing failed: unusable secret key =3D=3D=3D=3D=3D What the hell? Why EasyPG is specyfing a key and not relying on my ~/.gnupg/gpg.conf, which is *correct*? =3D=3D=3D=3D=3D luca@gismo:~$ gpg --version gpg (GnuPG) 1.4.10 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Home: ~/.gnupg Supported algorithms: Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128,=20 CAMELLIA192, CAMELLIA256 Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224 Compression: Uncompressed, ZIP, ZLIB, BZIP2 luca@gismo:~$ gpg --list-key luca@pca.it pub 1024D/9DDB992B 2007-06-08 [revoked: 2010-01-01] uid Luca Capello uid Luca Capello pub 1024D/6D742669 2003-11-09 [revoked: 2005-07-22] uid Luca Capello uid Luca Capello uid Luca Capello uid Luca Capello uid Luca Capello uid Luca Capello uid Luca Capello uid Luca Capello uid Luca Capello pub 4096R/E397832F 2009-07-01 uid Luca Capello uid Luca Capello sub 4096R/3BE9F36D 2009-07-01 sub 4096R/2BB95F4B 2009-07-01 luca@gismo:~$ cat ~/.gnupg/gpg.conf personal-digest-preferences SHA512 cert-digest-algo SHA512 default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5= ZLIB BZIP2 ZIP Uncompressed hidden-encrypt-to 3BE9F36D! hidden-encrypt-to 2BB95F4B! default-recipient 3BE9F36D! default-recipient 2BB95F4B! default-key E397832F list-options show-sig-expire display-charset UTF-8 trust-model auto keyserver hkps://keys.indymedia.org keyserver-options ca-cert-file=3D/etc/ssl/certs/cacert.org.pem luca@gismo:~$=20 =3D=3D=3D=3D=3D FYI, I do not know why the order of the --list-key option is that one (the three secret keys are there as well), but it is still the same with GnuPG-2. I looked into the Git repository and I found the faulty commit: commit 9515b7dbfaa1e68fb72c323a45120f77362c7324 Author: Daniel Dehennin Date: Tue Nov 16 23:05:02 2010 +0000 mml2015-epg-sign: Use From header. mml2015.el (mml2015-epg-sign): New variable 'sender' is (message-options-get 'message-sender) and append it to mml2015-signers. If mm-sign-option is not 'guided, mml2015-signers and sender sign the = mail. What is the reason of this change? If I want to sign with another key, independent of the From header, I should be able to do so, *automatically*, thus without any extra choice when sending the email. My ~/.gnupg/gpg.conf allows that, EasyPG/Gnus does not. Obviously, even setting `mml2015-signers' does not solve the problem: because now EasyPG tries to sign with two keys. The debug error is the same as above (useless), again the ` *epg-debug*' buffer contains the answer: =3D=3D=3D=3D=3D /usr/bin/gpg --no-tty --status-fd 1 --yes --command-fd 0 --armor \ --textmode --output /tmp/epg-output5441Qsz --detach-sign \ -u 8D3867D89DDB992B -u 06EAA066E397832F [GNUPG:] USERID_HINT D91D57A03BE9F36D Luca Capello [GNUPG:] NEED_PASSPHRASE D91D57A03BE9F36D 06EAA066E397832F 1 0 [GNUPG:] GET_HIDDEN passphrase.enter [GNUPG:] GOT_IT [GNUPG:] GOOD_PASSPHRASE gpg: skipped "8D3867D89DDB992B": unusable secret key gpg: signing failed: unusable secret key =3D=3D=3D=3D=3D FTR, if I go back to the `mml2015-sign' version before the commit above, everything is fine. Please note, however, the output in the ` *epg-debug*' buffer: =3D=3D=3D=3D=3D /usr/bin/gpg --no-tty --status-fd 1 --yes --command-fd 0 --armor \ --textmode --output /tmp/epg-output5441cKP --detach-sign [GNUPG:] USERID_HINT D91D57A03BE9F36D Luca Capello [GNUPG:] NEED_PASSPHRASE D91D57A03BE9F36D 06EAA066E397832F 1 0 [GNUPG:] GET_HIDDEN passphrase.enter [GNUPG:] GOT_IT [GNUPG:] GOOD_PASSPHRASE [GNUPG:] BEGIN_SIGNING [GNUPG:] SIG_CREATED D 1 10 01 1294352394 139121880F512EC2E6A464D3D91D57A03= BE9F36D /usr/bin/gpg --no-tty --status-fd 1 --yes --command-fd 0 --armor \ --textmode --output /tmp/epg-output5441pUV --detach-sign [GNUPG:] USERID_HINT D91D57A03BE9F36D Luca Capello [GNUPG:] NEED_PASSPHRASE D91D57A03BE9F36D 06EAA066E397832F 1 0 [GNUPG:] GET_HIDDEN passphrase.enter [GNUPG:] GOT_IT [GNUPG:] GOOD_PASSPHRASE [GNUPG:] BEGIN_SIGNING [GNUPG:] SIG_CREATED D 1 10 01 1294352397 139121880F512EC2E6A464D3D91D57A03= BE9F36D =3D=3D=3D=3D=3D The GnuPG invocation will respect my ~/.gnupg/gpg.conf (which is, again, the expected behavior), given that there is no -u option specified. Thx, bye, Gismo / Luca If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/share/emacs/24.0.50/etc/DEBUG. In GNU Emacs 24.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-12-13 on elegiac, modified by Debian (emacs-snapshot package, version 1:20101212-2) configured using `configure '--build' 'x86_64-linux-gnu' '--host' \ 'x86_64-linux-gnu' '--prefix=3D/usr' '--sharedstatedir=3D/var/lib' \ '--libexecdir=3D/usr/lib' '--localstatedir=3D/var' '--infodir=3D/usr/share= /info' \ '--mandir=3D/usr/share/man' '--with-pop=3Dyes' \ '--enable-locallisppath=3D/etc/emacs-snapshot:/etc/emacs:\ /usr/local/share/emacs/24.0.50/site-lisp:/usr/local/share/emacs/site-lisp= : \ /usr/share/emacs/24.0.50/site-lisp:/usr/share/emacs/site-lisp' \ '--without-compress-info' '--with-x=3Dyes' '--with-x-toolkit=3Dgtk' \ '--with-imagemagick=3Dyes' 'build_alias=3Dx86_64-linux-gnu' \ 'host_alias=3Dx86_64-linux-gnu' 'CFLAGS=3D-DDEBIAN -DSITELOAD_PURESIZE_EXT= RA=3D5000 \ -g -O2' 'LDFLAGS=3D-g -Wl,--as-needed' 'CPPFLAGS=3D'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Message Minor modes in effect: epa-mail-mode: t gnus-message-citation-mode: t mml-mode: t gpm-mouse-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: ESC x g n u s RET m l u c a @ l o c a l h o s t C-n=20 t e s t C-n C-n C-n C-n C-n t e s t RET C-c C-c y q=20 ESC x r e p o r t - e m TAB RET Recent messages: Opening nnfolder server on archive...done Reading active file from archive via nnfolder...done No new newsgroups Checking new news...done Setting up drafts group Warning: Setting up drafts group Address `luca@localhost' might be bogus. Continue? (y or n) y Sending... Entering debugger... Back to top level. Load-path shadows: /usr/share/emacs/24.0.50/site-lisp/auctex/tex-fold hides /usr/share/emacs/s= ite-lisp/auctex/tex-fold /usr/share/emacs/24.0.50/site-lisp/auctex/tex-jp hides /usr/share/emacs/sit= e-lisp/auctex/tex-jp /usr/share/emacs/24.0.50/site-lisp/auctex/tex-font hides /usr/share/emacs/s= ite-lisp/auctex/tex-font /usr/share/emacs/24.0.50/site-lisp/auctex/texmathp hides /usr/share/emacs/s= ite-lisp/auctex/texmathp /usr/share/emacs/24.0.50/site-lisp/auctex/toolbar-x hides /usr/share/emacs/= site-lisp/auctex/toolbar-x /usr/share/emacs/24.0.50/site-lisp/auctex/tex-buf hides /usr/share/emacs/si= te-lisp/auctex/tex-buf /usr/share/emacs/24.0.50/site-lisp/auctex/tex-info hides /usr/share/emacs/s= ite-lisp/auctex/tex-info /usr/share/emacs/24.0.50/site-lisp/auctex/tex-mik hides /usr/share/emacs/si= te-lisp/auctex/tex-mik /usr/share/emacs/24.0.50/site-lisp/auctex/context-nl hides /usr/share/emacs= /site-lisp/auctex/context-nl /usr/share/emacs/24.0.50/site-lisp/auctex/tex-fptex hides /usr/share/emacs/= site-lisp/auctex/tex-fptex /usr/share/emacs/24.0.50/site-lisp/auctex/multi-prompt hides /usr/share/ema= cs/site-lisp/auctex/multi-prompt /usr/share/emacs/24.0.50/site-lisp/auctex/tex-style hides /usr/share/emacs/= site-lisp/auctex/tex-style /usr/share/emacs/24.0.50/site-lisp/auctex/font-latex hides /usr/share/emacs= /site-lisp/auctex/font-latex /usr/share/emacs/24.0.50/site-lisp/auctex/bib-cite hides /usr/share/emacs/s= ite-lisp/auctex/bib-cite /usr/share/emacs/24.0.50/site-lisp/auctex/tex hides /usr/share/emacs/site-l= isp/auctex/tex /usr/share/emacs/24.0.50/site-lisp/auctex/context hides /usr/share/emacs/si= te-lisp/auctex/context /usr/share/emacs/24.0.50/site-lisp/auctex/tex-bar hides /usr/share/emacs/si= te-lisp/auctex/tex-bar /usr/share/emacs/24.0.50/site-lisp/auctex/latex hides /usr/share/emacs/site= -lisp/auctex/latex /usr/share/emacs/24.0.50/site-lisp/auctex/context-en hides /usr/share/emacs= /site-lisp/auctex/context-en /usr/share/emacs-snapshot/site-lisp/psgml/psgml hides /usr/share/emacs/site= -lisp/psgml/psgml /usr/share/emacs-snapshot/site-lisp/psgml/psgml-other hides /usr/share/emac= s/site-lisp/psgml/psgml-other /usr/share/emacs-snapshot/site-lisp/psgml/psgml-init hides /usr/share/emacs= /site-lisp/psgml/psgml-init /usr/share/emacs-snapshot/site-lisp/psgml/psgml-sysdep hides /usr/share/ema= cs/site-lisp/psgml/psgml-sysdep /usr/share/emacs-snapshot/site-lisp/psgml/psgml-html hides /usr/share/emacs= /site-lisp/psgml/psgml-html /usr/share/emacs/24.0.50/site-lisp/debian-startup hides /usr/share/emacs/si= te-lisp/debian-startup /usr/local/share/emacs/site-lisp/fortune hides /usr/share/emacs/24.0.50/lis= p/play/fortune /usr/share/emacs-snapshot/site-lisp/emms/tq hides /usr/share/emacs/24.0.50/= lisp/emacs-lisp/tq Features: (shadow emacsbug help-mode view debug mail-extr sort epa-mail epa derived epg gnus-cite nnfolder nndraft nnmh nnnil gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 epg-config mm-view smime password-cache dig mailcap nntp proto-stream starttls tls gnus-cache nnir gnus-sum macroexp nnoo gnus-group time-date gnus-undo nnmail mail-source format-spec gnus-start gnus-spec gnus-int gnus-range message sendmail regexp-opt rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems nnheader gnus-util mail-utils mm-util mail-prsvr wid-edit t-mouse planner-autoloads debian-el debian-el-loaddefs w3m-load psgml-init muse-autoloads emms-auto emacs-goodies-el emacs-goodies-custom emacs-goodies-loaddefs easy-mmode dpkg-dev-el dpkg-dev-el-loaddefs bbdb-autoloads preview-latex tex-site auto-loads tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBCgAGBQJNJlCKAAoJENkdV6A76fNtp0YQAJpTERqpXOR6Y2u7mogMx2L8 eHBjAI5tRM6uk0tqTU6gWFUVR6lhemmbmLmUdAjwOJMLbYIKJQhav0zjHUUXNhgR AID7aCa+FZlpPE8evNTzc3+eGtHtJpDci9TrFp1PDp0Gj5l8/LB1eY9EbWvjoTJo 92mCPCOtqHe/cSs6p1GdynIEDvdFtbRVgKNHE7TvO5CTukSUMFwFajW5fYoziBAo /a/eSLwnsFIYl03PPTRujNOhRie3LrdsSIvl7ozVOlYbmtAFMerQ68HuidD34j8u xlSEnQEXGwYEEYW/Ii7U7iHoHyKYOk6WSDDiWYvDrpmZvDGgsOGB15iPtn6psa+t rGUecpeEf2RbdTvDE/ynWnm1y9FQAx5JrmnnkikreuZD11/DRB3j1gBrniknzV+t L0jW99JMEygODokb2vpUFWePv5ahg/6D/62lbAlKmE21IwSRf3spNWQYokGZ767r Exx0JGlreca2n7UGY4SaGhOsi+CEA0gzCtumAVX3kxCZrZi4nqopW6zwptb0v+Po QwfNFqQ3vqWrsfo/3xaozjMy+GU46HZZzyh/Rg7C4uI/YxxKF8hSLIGeW0M7nnnK sBJD0ZOp7evqlQO7zwSiTHdqyYEwGt516WZKjWl2bt25AtcptODuZ8oU5kgrhN17 SM25G9YVCCZIB14E8m1u =nhlb -----END PGP SIGNATURE----- --=-=-=-- ------------=_1294392482-12771-1-- From unknown Sat Sep 06 07:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7797: 24.0.50; [EasyPG/Gnus] always pick up the first key from `gpg --list-key $SENDER` Resent-From: Luca Capello Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Fri, 07 Jan 2011 10:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7797 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Daiki Ueno Cc: rfrancoise@debian.org, Ashish SHUKLA , Daniel Dehennin , 7797@debbugs.gnu.org Received: via spool by 7797-submit@debbugs.gnu.org id=B7797.129439505816261 (code B ref 7797); Fri, 07 Jan 2011 10:11:02 +0000 Received: (at 7797) by debbugs.gnu.org; 7 Jan 2011 10:10:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pb9Hd-0004ED-Mw for submit@debbugs.gnu.org; Fri, 07 Jan 2011 05:10:58 -0500 Received: from [151.1.160.141] (helo=clio.genesi.eu) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pb9Hb-0004Dy-2H; Fri, 07 Jan 2011 05:10:56 -0500 Received: from localhost (localhost [127.0.0.1]) by clio.genesi.eu (Postfix) with ESMTP id 7EBA3DF569; Fri, 7 Jan 2011 11:18:10 +0100 (CET) X-Virus-Scanned: amavisd-new at genesi.eu Received: from clio.genesi.eu ([127.0.0.1]) by localhost (clio.genesi.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ug9cBrrDRQfe; Fri, 7 Jan 2011 11:18:10 +0100 (CET) Received: from mantissa.pca.it (ip-85-135.sn2.eutelia.it [83.211.85.135]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by clio.genesi.eu (Postfix) with ESMTPS id 1E98CDF568; Fri, 7 Jan 2011 11:18:10 +0100 (CET) Received: from gismo.pca.it (unknown [129.194.56.110]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mantissa.pca.it (Postfix) with ESMTPSA id A18D222186; Fri, 7 Jan 2011 11:18:08 +0100 (CET) Received: by gismo.pca.it (Postfix, from userid 1000) id 3FE152BFCE; Fri, 7 Jan 2011 11:18:06 +0100 (CET) From: Luca Capello In-Reply-To: (Daiki Ueno's message of "Fri, 07 Jan 2011 18:34:59 +0900") References: <874o9lehkl.fsf@gismo.pca.it> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Date: Fri, 07 Jan 2011 11:17:57 +0100 Message-ID: <87r5cpow4q.fsf@gismo.pca.it> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.5 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable reopen 7797 thanks Hi Daiki! On Fri, 07 Jan 2011 10:34:59 +0100, Daiki Ueno wrote: > Daiki Ueno writes: > >> Luca Capello writes: >> >>> gpg: skipped "8D3867D89DDB992B": unusable secret key >>> gpg: signing failed: unusable secret key >> >> You may want to try the patch I posted last month: >> http://lists.gnu.org/archive/html/emacs-devel/2010-12/msg00624.html Thank you for the link, I was quite disappointed no one reported it on the GNU BTS. I added both Ashish and Daniel to the cc:, discussion requested below. >> Although this patch is a workaround, I'm going to push it for the time >> being. > > OK, I fixed this in a better way (r102771). Please, can you post it here, so I do not have to download the bzr repository? The Savannah bzr repository is disabled and the Launhpad one does not have it yet. > My test case is: > > $ mv .gnupg .gnupg.bak > $ gpg --gen-key # create a key foo@example.com > $ gpg --gen-key # create a key bar@example.com > $ gpg --gen-key # create a key baz@example.com > $ gpg --edit-key foo@example.com # revoke foo@example.com > $ gpg --delete-secret-key bar@example.com > > (mml2015-epg-find-usable-secret-key > (epg-make-context 'OpenPGP) "foo@example.com" 'sign) > =3D> nil > (mml2015-epg-find-usable-secret-key > (epg-make-context 'OpenPGP) "bar@example.com" 'sign) > =3D> nil > (mml2015-epg-find-usable-secret-key > (epg-make-context 'OpenPGP) "baz@example.com" 'sign) > =3D> (epg-key . ...) I am sorry, but I still think this is not the correct solution, thus I reopened the bug (control server bcc:ed). I think the cases should be the following, which I have (sort of) explained in my first post and it is similar to Ashish's one at: 1) by default, EasyPG does not pass any key-id to GnuPG, simply relying on ~/.gnupg/gpg.conf. After all, GnuPG configuration is done there, and *by default* all the other programs working with GnuPG should obey that configuration. And this is how I read `mm-sign-option': Option how to create signed parts. nil, use the default keys without asking; `guided', let you select signing keys from the menu. However, `mm-encrypt-option' contains the real behavior according to the code: Option of creating encrypted parts. nil, use the first public-key matching the "From:" header as the recipient; `guided', ask user to select recipient keys from the menu. =20=20=20 2) if `mml2015-signers' is set, it overrides point 1. BTW1, the documentation for that variable should be corrected: AFAIK you can set it to multiple keys, which means that the documentation should read "A list of your own key ID(s)...", note the plural. BTW2, this variable is not mentioned in any file in the doc/ folder, which is another bug. 3) introduce a new `mml2015-use-from-address' variable: - if set, it then acts like the way you explain above. - if not set, nothing changes WRT to points 1 and 2. 4) introduce also a new `mml2015-default-user-id' variable, which, if set, overrides *everything* from the above, similar to `pgg-default-user-id' reported by Ashish at the link above. I would have wanted to reply only after having implemented my solution, but since I am quite busy right now (and I will be for the whole next week as well), it is better to put here my ideas *now*. For this reason, I have probably missed something of the whole situation, thus please forgive me. Thx, bye, Gismo / Luca --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBCgAGBQJNJuhWAAoJENkdV6A76fNtV40P/jKrDJbytfdo2LyjEgsXnbtX OLWteYL/CSNdUYHC8sdQ8Yc4FlIfXWAyENt4zuao1ksmHi1q/gn7243fahHdeAAJ B5nVbcuV3eHvqWAZ0maJjE7rtGgujnFRXY5jC3B5oKsQEN1rnd/A9+LP4Uvf9PCO +nPK6sAus9HwBgHmxt74ZS4MSlWNNCFwFq3iv9oYUAeaAZdG9fdZ2YZSE0wHyDNQ 5LWYAeddNTKnz230R2uM23T0s2Xg8lG6yXbMuVm+lcE5F91eNy4qSy3OXX8qeyma aBiKo7nwZXbUTVg0QOTAkpNrzxEPYWY5O/ZqgcTSixueEfSC/NFt0BUx+zq53jjb kwW6udvL8gyZ/oBb/0KMY6SfW/BkWTOt2SOPArA0nQLa2rEKOB/xTXTdIhsqBL7j 9HOW/h9uzEwycLhh5oL0A10s0hqrfV1JBrebEMbPt84JhXlxM57VII1YGP68hvFG 11QH/Z3hPPekRXr3R1yiWC1Xtv8nY4jjOTEeP3pxOfxucB64b0+oyZwqo+hifY97 NQ0NQ0vQ9YbrcJgbvFEH/9hZNiglXTPOuFyv2OEqnoX8cqb1CBBhoKsH9aS8s3rQ 7TGADzlddkA4AbIcmPHsZisjcLahki5S+ARQjl8XaCKIwRWtCbGwMA8Po1RfvPqo wb/0FmviFAz1KNsCngHh =0jb4 -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Sep 06 07:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7797: 24.0.50; [EasyPG/Gnus] always pick up the first key from `gpg --list-key $SENDER` Resent-From: Daiki Ueno Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Fri, 07 Jan 2011 13:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7797 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Luca Capello Cc: rfrancoise@debian.org, Ashish SHUKLA , Daniel Dehennin , 7797@debbugs.gnu.org Received: via spool by 7797-submit@debbugs.gnu.org id=B7797.12944059033986 (code B ref 7797); Fri, 07 Jan 2011 13:12:02 +0000 Received: (at 7797) by debbugs.gnu.org; 7 Jan 2011 13:11:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbC6Y-00012E-DG for submit@debbugs.gnu.org; Fri, 07 Jan 2011 08:11:42 -0500 Received: from ivory4.scn-net.ne.jp ([219.117.176.192]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1PbC6V-000120-AT for 7797@debbugs.gnu.org; Fri, 07 Jan 2011 08:11:41 -0500 Received: from ([192.168.0.187]) (envelope sender: ) by ivory4.scn-net.ne.jp with Active!Hunter esmtp server; Fri, 7 Jan 2011 22:18:52 +0900 Received: Received: from well-done.deisui.org (g187018.scn-net.ne.jp [202.83.187.18]) (authenticated) by blue17.scn-net.ne.jp (unknown) with ESMTP id p07DIoTw008091; Fri, 7 Jan 2011 22:18:51 +0900 From: Daiki Ueno References: <874o9lehkl.fsf@gismo.pca.it> <87r5cpow4q.fsf@gismo.pca.it> Date: Fri, 07 Jan 2011 22:18:41 +0900 In-Reply-To: <87r5cpow4q.fsf@gismo.pca.it> (Luca Capello's message of "Fri, 07 Jan 2011 11:17:57 +0100") Message-ID: <87y66wn972.fsf@broken.deisui.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) Luca Capello writes: > Please, can you post it here, so I do not have to download the bzr > repository? The Savannah bzr repository is disabled > and the Launhpad one > does not > have it yet. Looks git mirror is up to date: http://git.sv.gnu.org/cgit/emacs.git/commit/?id=3d51f602 > I am sorry, but I still think this is not the correct solution, thus I > reopened the bug (control server bcc:ed). I think the cases should be > the following, which I have (sort of) explained in my first post and it > is similar to Ashish's one at: > > I think there are 2 separate issues: (1) Gnus now picks signing keys from "From:" header by default. Which is an incompatible behavior change from the previous versions. (2) mml2015-epg-find-usable-key, a function used to determine whether a key is usable for signing, has a bug. I fixed (2) as r102771 and you are talking about (1). > I would have wanted to reply only after having implemented my solution, > but since I am quite busy right now (and I will be for the whole next > week as well), it is better to put here my ideas *now*. Well, probably you could first try the patch for (2) and then propose improvement ideas for (1) I think :-) Regards, -- Daiki Ueno From unknown Sat Sep 06 07:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7797: Configure the use of from header for epg signing. In-Reply-To: <874o9lehkl.fsf@gismo.pca.it> Resent-From: Daniel Dehennin Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Fri, 07 Jan 2011 17:50:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7797 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: ding@gnus.org Cc: rfrancoise@debian.org, Ashish SHUKLA , Daiki Ueno , 7797@debbugs.gnu.org, Luca Capello Received: via spool by 7797-submit@debbugs.gnu.org id=B7797.129442257329756 (code B ref 7797); Fri, 07 Jan 2011 17:50:03 +0000 Received: (at 7797) by debbugs.gnu.org; 7 Jan 2011 17:49:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbGRQ-0007js-TQ for submit@debbugs.gnu.org; Fri, 07 Jan 2011 12:49:33 -0500 Received: from zion.baby-gnu.org ([82.233.222.74]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbG3C-0007Bu-4o for 7797@debbugs.gnu.org; Fri, 07 Jan 2011 12:24:31 -0500 Received: from hati.asgardr.info ([192.168.1.2] helo=hati.baby-gnu.org) by zion.baby-gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1PbGAA-0003iA-EM; Fri, 07 Jan 2011 18:31:42 +0100 From: Daniel Dehennin Date: Fri, 07 Jan 2011 18:29:01 +0100 Message-ID: <877heghbc2.fsf@hati.baby-gnu.org> References: <87y66wn972.fsf@broken.deisui.org> <874o9lehkl.fsf@gismo.pca.it> <87r5cpow4q.fsf@gismo.pca.it> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Organisation: Dark Church of Emacs MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.6 (--) X-Mailman-Approved-At: Fri, 07 Jan 2011 12:49:31 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Here is a patch to make the use of from header conditional, this solve issue 1 in [1]. It can be fetched from my Gnus git repository [2]. I do not update the Changelog to avoid conflict, I think changelog can be automatically handled by hook when Lars pull in its branch ;-) This patch is tested by me. Regards. * lisp/mml2015.el (mml2015-use-from-address): New variable for optional from header use. (mml2015-epg-sign): Use it. (mml2015-epg-encrypt): Ditto. =2D-- lisp/mml2015.el | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lisp/mml2015.el b/lisp/mml2015.el index 9831b33..dde8a08 100644 =2D-- a/lisp/mml2015.el +++ b/lisp/mml2015.el @@ -121,6 +121,12 @@ Whether the passphrase is cached at all is controlled = by :group 'mime-security :type '(repeat (string :tag "Key ID"))) =20 +(defcustom mml2015-use-from-address nil + "If t, use from header mail address before mml2015-signers when +signing." + :group 'mime-security + :type 'boolean) + (defcustom mml2015-encrypt-to-self nil "If t, add your own key ID to recipient list when encryption." :group 'mime-security @@ -960,7 +966,8 @@ Whether the passphrase is cached at all is controlled by (let* ((inhibit-redisplay t) (context (epg-make-context)) (boundary (mml-compute-boundary cont)) =2D (sender (message-options-get 'message-sender)) + (sender (if mml2015-use-from-address + (message-options-get 'message-sender))) signer-key (signers (or (message-options-get 'mml2015-epg-signers) @@ -1035,7 +1042,8 @@ If no one is selected, default secret key is used. " (let ((inhibit-redisplay t) (context (epg-make-context)) (config (epg-configuration)) =2D (sender (message-options-get 'message-sender)) + (sender (if mml2015-use-from-address + (message-options-get 'message-sender))) (recipients (message-options-get 'mml2015-epg-recipients)) cipher signers (boundary (mml-compute-boundary cont)) =2D-=20 1.7.2.3 Footnotes:=20 [1] http://lists.gnu.org/archive/html/bug-gnu-emacs/2011-01/msg00207.html [2] http://www.baby-gnu.org/~nebu/archives/gnus/gnus.git/ dad/mml2015-epg-= use-from-to-sign-if-configured =2D-=20 Daniel Dehennin R=C3=A9cup=C3=A9rer ma clef GPG: gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iEYEAREKAAYFAk0nTf4ACgkQb97L6l6P4Ftn6ACdEF6dZVdg+GabLxqW5opxK5rf hp0AniIRzhN09yflMd8kcI6g6Wh+BQwz =3/bh -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Sep 06 07:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7797: Configure the use of from header for epg signing. In-Reply-To: <874o9lehkl.fsf@gismo.pca.it> Resent-From: Luca Capello Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sun, 16 Jan 2011 20:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7797 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Daniel Dehennin Cc: rfrancoise@debian.org, Ashish SHUKLA , Daiki Ueno , 7797@debbugs.gnu.org, ding@gnus.org Received: via spool by 7797-submit@debbugs.gnu.org id=B7797.12952094874745 (code B ref 7797); Sun, 16 Jan 2011 20:25:02 +0000 Received: (at 7797) by debbugs.gnu.org; 16 Jan 2011 20:24:47 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PeZ9b-0001EU-Ck for submit@debbugs.gnu.org; Sun, 16 Jan 2011 15:24:47 -0500 Received: from [151.1.160.141] (helo=clio.genesi.eu) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PeZ9Y-0001EH-Uj for 7797@debbugs.gnu.org; Sun, 16 Jan 2011 15:24:46 -0500 Received: from localhost (localhost [127.0.0.1]) by clio.genesi.eu (Postfix) with ESMTP id 85E8CE0707; Sun, 16 Jan 2011 21:32:25 +0100 (CET) X-Virus-Scanned: amavisd-new at genesi.eu Received: from clio.genesi.eu ([127.0.0.1]) by localhost (clio.genesi.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F7YM8+wo52AA; Sun, 16 Jan 2011 21:32:25 +0100 (CET) Received: from mantissa.pca.it (ip-85-135.sn2.eutelia.it [83.211.85.135]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by clio.genesi.eu (Postfix) with ESMTPS id 3C6C5A740F; Sun, 16 Jan 2011 21:32:25 +0100 (CET) Received: from gismo.pca.it (116-107.78-83.cust.bluewin.ch [83.78.107.116]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mantissa.pca.it (Postfix) with ESMTPSA id 6B6D522296; Sun, 16 Jan 2011 21:32:24 +0100 (CET) Received: by gismo.pca.it (Postfix, from userid 1000) id 6011E2BFE6; Sun, 16 Jan 2011 21:32:23 +0100 (CET) From: Luca Capello References: <87y66wn972.fsf@broken.deisui.org> <874o9lehkl.fsf@gismo.pca.it> <87r5cpow4q.fsf@gismo.pca.it> <877heghbc2.fsf@hati.baby-gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Date: Sun, 16 Jan 2011 21:32:20 +0100 Message-ID: <87lj2kd1yj.fsf@gismo.pca.it> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -4.5 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.9 (---) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi there! On Fri, 07 Jan 2011 14:18:41 +0100, Daiki Ueno wrote: > Luca Capello writes: >> Please, can you post it here, so I do not have to download the bzr >> repository? The Savannah bzr repository is disabled >> and the Launhpad one >> does not >> have it yet. > > Looks git mirror is up to date: > > http://git.sv.gnu.org/cgit/emacs.git/commit/?id=3D3d51f602 It was not at the time of my writing and looking around on the Internet I was not sure if the Git repository is automatically updated (and when) or not. >> I am sorry, but I still think this is not the correct solution, thus I >> reopened the bug (control server bcc:ed). I think the cases should be >> the following, which I have (sort of) explained in my first post and it >> is similar to Ashish's one at: >> >> > > I think there are 2 separate issues: > > (1) Gnus now picks signing keys from "From:" header by default. Which is > an incompatible behavior change from the previous versions. > > (2) mml2015-epg-find-usable-key, a function used to determine whether a > key is usable for signing, has a bug. > > I fixed (2) as r102771 and you are talking about (1).=20=20 Exactly, but I do not understand the need for (2), since as I wrote in my previous reply (point 1) IMHO by default EasyPG should do nothing WRT GnuPG and which keys should be used, especially given that the error message is useless without a non-nil `epg-debug': Message-ID: <87r5cpow4q.fsf@gismo.pca.it> URL: Nevertheless, now that things went back to normality (read below), I do not care such a lot about that. >> I would have wanted to reply only after having implemented my solution, >> but since I am quite busy right now (and I will be for the whole next >> week as well), it is better to put here my ideas *now*. > > Well, probably you could first try the patch for (2) and then propose > improvement ideas for (1) I think :-) FWIW, your patch for (2) works perfectly (adapted to the lisp/gnus/mml2015.el local copy I have), tested on both my working environment and the fresh setup I used to report the bug. On Fri, 07 Jan 2011 18:29:01 +0100, Daniel Dehennin wrote: > Here is a patch to make the use of from header conditional, this solve > issue 1 in [1]. > > It can be fetched from my Gnus git repository [2]. > > I do not update the Changelog to avoid conflict, I think changelog can > be automatically handled by hook when Lars pull in its branch ;-) > > This patch is tested by me. And tested by me as well, *without* Daiki's patch applied, for both signing... =3D=3D=3D=3D=3D /usr/bin/gpg --no-tty --status-fd 1 --yes --command-fd 0 --armor --textmode= \ =2D-output /tmp/epg-output3395dRp --detach-sign -u 8D3867D89DDB992B gpg: skipped "8D3867D89DDB992B": unusable secret key gpg: signing failed: unusable secret key [patch applied] /usr/bin/gpg --no-tty --status-fd 1 --yes --command-fd 0 --armor --textmode= \ =2D-output /tmp/epg-output3395qbv --detach-sign [GNUPG:] USERID_HINT D91D57A03BE9F36D Luca Capello =3D=3D=3D=3D=3D ...and encryption to my Debian address: =3D=3D=3D=3D=3D /usr/bin/gpg --no-tty --status-fd 1 --yes --command-fd 0 --armor --textmode= \ --output /tmp/epg-output355543E --always-trust --encrypt --sign -u 8D3867D= 89DDB992B -r 06EAA066E397832F gpg: skipped "8D3867D89DDB992B": unusable secret key gpg: [stdin]: sign+encrypt failed: unusable secret key [patch applied] /usr/bin/gpg --no-tty --status-fd 1 --yes --command-fd 0 --armor --textmode= \ --output /tmp/epg-output3555FCL --always-trust --encrypt --sign -r 06EAA06= 6E397832F [GNUPG:] USERID_HINT D91D57A03BE9F36D Luca Capello =3D=3D=3D=3D=3D > @@ -1035,7 +1042,8 @@ If no one is selected, default secret key is used. = " > (let ((inhibit-redisplay t) > (context (epg-make-context)) > (config (epg-configuration)) > - (sender (message-options-get 'message-sender)) > + (sender (if mml2015-use-from-address > + (message-options-get 'message-sender))) There are extra spaces before the parenthesis here ;-) Thx, bye, Gismo / Luca --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBCgAGBQJNM1XUAAoJENkdV6A76fNt2esP+wZ1TFgIww2fo1cY1R/RV91j hKDNg5W6yUyqVT+bY+3KAfb3REgtdgkBGaEQ2HHKqGLHO1N0O3zTclHJEOH9Qvjq TdT9/rU7/YIaa4YYmnvUKWx5FFkp5cA9MuUIgLntPPhwkNbeiereunXVDm9DcuLy s/pz7CYF7Mo4fM6ufHS8ScBKccRHyUvOAF3+P05gqDJq1iYp90g9A+ZVYaE+ToBw v61flo2+TB4fiYyNVENOnsQuMJlvFGa31dhlflhHFhG7NXlBznk9d6XekWD9g4CC dA5smC+38fene9jdvGqgl8PYUPpHzdXDzPCe8GvhT6VG4WgzVAFYzbkaPtDXgqPk yNck88pFRrRi4MgPuB/tywVGU2xSECenbcJjkRzbdZ9t3l2NlfuWRXt7EkcY9IEb eIJS/YmxW8PA3u3phqy/07wliBQRleW4U/Win5hj7/BVj1c6QqLPcxw6ZlWdxVc8 81J4HxKlRV6i1r6T69VcToDTIeLohENRg9T48Vv78HJpiY1cNqpAuTogD8/I5t+l A6VotcF9LHKECOKQR7tiTp6c9Kp05gZhMrGEn/2tAwdwy4YK8dBAMZrVkQhcbFBV OZlsxfrpB6xyWBYBad0lagFmeWUU0So2BRZ9eUeMSsqfQh973kn6PRLd2lFFcEHc L9uSf2XDX6G1Cq/MwQ1+ =qaSm -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Sep 06 07:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7797: Configure the use of from header for epg signing. In-Reply-To: <874o9lehkl.fsf@gismo.pca.it> Resent-From: Daniel Dehennin Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sun, 16 Jan 2011 20:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7797 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: ding@gnus.org Cc: rfrancoise@debian.org, Ashish SHUKLA , Daiki Ueno , 7797@debbugs.gnu.org, Luca Capello Received: via spool by 7797-submit@debbugs.gnu.org id=B7797.12952106706396 (code B ref 7797); Sun, 16 Jan 2011 20:45:02 +0000 Received: (at 7797) by debbugs.gnu.org; 16 Jan 2011 20:44:30 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PeZSf-0001f7-Fp for submit@debbugs.gnu.org; Sun, 16 Jan 2011 15:44:29 -0500 Received: from zion.baby-gnu.org ([82.233.222.74]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PeZSd-0001ev-UN for 7797@debbugs.gnu.org; Sun, 16 Jan 2011 15:44:28 -0500 Received: from hati.asgardr.info ([192.168.1.2] helo=hati.baby-gnu.org) by zion.baby-gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1PeZa0-0004SW-7I; Sun, 16 Jan 2011 21:52:04 +0100 From: Daniel Dehennin References: <87lj2kd1yj.fsf@gismo.pca.it> <87y66wn972.fsf@broken.deisui.org> <874o9lehkl.fsf@gismo.pca.it> <87r5cpow4q.fsf@gismo.pca.it> <877heghbc2.fsf@hati.baby-gnu.org> Organisation: Dark Church of Emacs Date: Sun, 16 Jan 2011 21:52:03 +0100 Message-ID: <87aaj0wozw.fsf@hati.baby-gnu.org> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Here is a fixed patch. Regards. * lisp/mml2015.el (mml2015-use-from-address): New variable for optional from header use. (mml2015-epg-sign): Use it. (mml2015-epg-encrypt): Ditto. =2D-- lisp/mml2015.el | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lisp/mml2015.el b/lisp/mml2015.el index 9831b33..762eb95 100644 =2D-- a/lisp/mml2015.el +++ b/lisp/mml2015.el @@ -121,6 +121,12 @@ Whether the passphrase is cached at all is controlled = by :group 'mime-security :type '(repeat (string :tag "Key ID"))) =20 +(defcustom mml2015-use-from-address nil + "If t, use from header mail address before mml2015-signers when +signing." + :group 'mime-security + :type 'boolean) + (defcustom mml2015-encrypt-to-self nil "If t, add your own key ID to recipient list when encryption." :group 'mime-security @@ -960,7 +966,8 @@ Whether the passphrase is cached at all is controlled by (let* ((inhibit-redisplay t) (context (epg-make-context)) (boundary (mml-compute-boundary cont)) =2D (sender (message-options-get 'message-sender)) + (sender (if mml2015-use-from-address + (message-options-get 'message-sender))) signer-key (signers (or (message-options-get 'mml2015-epg-signers) @@ -1035,7 +1042,8 @@ If no one is selected, default secret key is used. " (let ((inhibit-redisplay t) (context (epg-make-context)) (config (epg-configuration)) =2D (sender (message-options-get 'message-sender)) + (sender (if mml2015-use-from-address + (message-options-get 'message-sender))) (recipients (message-options-get 'mml2015-epg-recipients)) cipher signers (boundary (mml-compute-boundary cont)) =2D-=20 1.7.2.3 =2D-=20 Daniel Dehennin R=C3=A9cup=C3=A9rer ma clef GPG: gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iEYEAREKAAYFAk0zWnMACgkQb97L6l6P4FuLWACggJK7hMAnTSKhzYdxhB4ykpsD FSoAnRDfYwzslXmMqVy04ZgMv2NTF3aq =5pew -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Sep 06 07:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7797: Configure the use of from header for epg signing. Resent-From: Lars Ingebrigtsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sat, 22 Jan 2011 18:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7797 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Daniel Dehennin Cc: Daiki Ueno , 7797@debbugs.gnu.org, ding@gnus.org, rfrancoise@debian.org, Ashish SHUKLA , Luca Capello Received: via spool by 7797-submit@debbugs.gnu.org id=B7797.129572185528173 (code B ref 7797); Sat, 22 Jan 2011 18:45:02 +0000 Received: (at 7797) by debbugs.gnu.org; 22 Jan 2011 18:44:15 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PgiRb-0007KM-Cv for submit@debbugs.gnu.org; Sat, 22 Jan 2011 13:44:15 -0500 Received: from baybryj.net ([198.144.208.130] helo=vaio) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PgiRZ-0007K6-Av for 7797@debbugs.gnu.org; Sat, 22 Jan 2011 13:44:14 -0500 Received: from larsi by vaio with local (Exim 4.69) (envelope-from ) id 1PgiYw-0003uv-5d; Sat, 22 Jan 2011 19:51:50 +0100 From: Lars Ingebrigtsen In-Reply-To: <87aaj0wozw.fsf@hati.baby-gnu.org> (Daniel Dehennin's message of "Sun, 16 Jan 2011 21:52:03 +0100") Date: Sat, 22 Jan 2011 19:51:22 +0100 Message-ID: <87sjwku5zp.fsf@gnus.org> References: <87lj2kd1yj.fsf@gismo.pca.it> <87y66wn972.fsf@broken.deisui.org> <874o9lehkl.fsf@gismo.pca.it> <87r5cpow4q.fsf@gismo.pca.it> <877heghbc2.fsf@hati.baby-gnu.org> <87aaj0wozw.fsf@hati.baby-gnu.org> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Daniel Dehennin writes: > Here is a fixed patch. I'm not familiar with the signing code, but the patch looks fine to me. Should I just apply it? -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen From unknown Sat Sep 06 07:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7797: Configure the use of from header for epg signing. Resent-From: Daiki Ueno Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Mon, 24 Jan 2011 03:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7797 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: Daniel Dehennin , 7797@debbugs.gnu.org, ding@gnus.org, rfrancoise@debian.org, Ashish SHUKLA , Luca Capello Received: via spool by 7797-submit@debbugs.gnu.org id=B7797.12958380724593 (code B ref 7797); Mon, 24 Jan 2011 03:02:02 +0000 Received: (at 7797) by debbugs.gnu.org; 24 Jan 2011 03:01:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PhCg3-0001C2-M1 for submit@debbugs.gnu.org; Sun, 23 Jan 2011 22:01:12 -0500 Received: from ivory4.scn-net.ne.jp ([219.117.176.192]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1PhCg0-0001BW-FG for 7797@debbugs.gnu.org; Sun, 23 Jan 2011 22:01:10 -0500 Received: from ([192.168.0.187]) (envelope sender: ) by ivory4.scn-net.ne.jp with Active!Hunter esmtp server; Mon, 24 Jan 2011 12:09:06 +0900 Received: Received: from well-done.deisui.org (g187018.scn-net.ne.jp [202.83.187.18]) (authenticated) by blue17.scn-net.ne.jp (unknown) with ESMTP id p0O394N3027966; Mon, 24 Jan 2011 12:09:04 +0900 Message-ID: From: Daiki Ueno References: <87lj2kd1yj.fsf@gismo.pca.it> <87y66wn972.fsf@broken.deisui.org> <874o9lehkl.fsf@gismo.pca.it> <87r5cpow4q.fsf@gismo.pca.it> <877heghbc2.fsf@hati.baby-gnu.org> <87aaj0wozw.fsf@hati.baby-gnu.org> <87sjwku5zp.fsf@gnus.org> Date: Mon, 24 Jan 2011 12:09:22 +0900 In-Reply-To: <87sjwku5zp.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 22 Jan 2011 19:51:22 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) Lars Ingebrigtsen writes: > Daniel Dehennin writes: > >> Here is a fixed patch. > > I'm not familiar with the signing code, but the patch looks fine to me. > Should I just apply it? It looks good to me. Since I'm thinking of another tweak related to signing, I'll apply this patch soon unless anyone objects. Regards, -- Daiki Ueno From unknown Sat Sep 06 07:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7797: Configure the use of from header for epg signing. Resent-From: Julien Danjou Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Thu, 27 Jan 2011 17:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7797 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Daiki Ueno Cc: Ashish SHUKLA , Daniel Dehennin , 7797@debbugs.gnu.org, ding@gnus.org, rfrancoise@debian.org, Lars Ingebrigtsen , Luca Capello Received: via spool by 7797-submit@debbugs.gnu.org id=B7797.12961482366855 (code B ref 7797); Thu, 27 Jan 2011 17:11:01 +0000 Received: (at 7797) by debbugs.gnu.org; 27 Jan 2011 17:10:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PiVMh-0001mW-Sy for submit@debbugs.gnu.org; Thu, 27 Jan 2011 12:10:36 -0500 Received: from coquelicot-s.easter-eggs.com ([213.215.37.94]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PiVMf-0001m9-No for 7797@debbugs.gnu.org; Thu, 27 Jan 2011 12:10:34 -0500 Received: from cigue.easter-eggs.fr (cigue.easter-eggs.fr [10.0.0.33]) by rose.easter-eggs.fr (Postfix) with ESMTPS id 4904B140CA; Thu, 27 Jan 2011 18:18:39 +0100 (CET) Received: from jdanjou by cigue.easter-eggs.fr with local (Exim 4.72) (envelope-from ) id 1PiVUZ-0006pm-Aj; Thu, 27 Jan 2011 18:18:43 +0100 From: Julien Danjou References: <87lj2kd1yj.fsf@gismo.pca.it> <87y66wn972.fsf@broken.deisui.org> <874o9lehkl.fsf@gismo.pca.it> <87r5cpow4q.fsf@gismo.pca.it> <877heghbc2.fsf@hati.baby-gnu.org> <87aaj0wozw.fsf@hati.baby-gnu.org> <87sjwku5zp.fsf@gnus.org> Mail-Followup-To: Daiki Ueno , Lars Ingebrigtsen , Daniel Dehennin , ding@gnus.org, Luca Capello , 7797@debbugs.gnu.org, rfrancoise@debian.org, Ashish SHUKLA Date: Thu, 27 Jan 2011 18:18:42 +0100 In-Reply-To: (Daiki Ueno's message of "Mon, 24 Jan 2011 12:09:22 +0900") Message-ID: User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Spam-Score: -3.2 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.1 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > It looks good to me. Since I'm thinking of another tweak related to > signing, I'll apply this patch soon unless anyone objects. Sorry, I got bitten by this today and fixed it without seeing this thread before. I've just fixed the same way Daniel did, so no harm done. :) =2D-=20 Julien Danjou =E2=9D=B1 http://julien.danjou.info --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJNQajzAAoJEGEbqVCLeKXCZbEP/Ra/GUx9lv583DAKAJRNBd0f g4zZkzj3KD1hf8dzB7xNdmo8CSaJR79cgI7uk0NZvGNbU6+pmNdr6rUiiDOu/pSE WPlwLu98u4t/awaz+DxuPOhV5tfOQ2CvKU0OdmnM3lndq33YzXpj4OAcFFY0cEOG HaxF1tGTuMJa84+wNild3X275or24L6mLWnYuTGzRD9RZjWAedAY5sJ5B0M5nmd3 +5vD86XpjjU8doLcTjXmLbNxUxSH2ZfxYbanq49z/I0wjMexX869acEweF83A5v/ cMDoyL9YuojI7M8T08RYMOSmu7NPcy+i+5kSYwEz5bO6sE5uLTbWITcqkuVIHXIb 6dABDRj+qrdeNeCTVPmVnyirbfD8UcPR280yVZWiwa3gg/8J5EjRv/r8ZtjvtGB7 1tBR+URBGIyXhXfBCiBAut6HvBnrpARyfxWqa82KIK9g0cFdYzmpFMon/c0jXrhS kdPT4VMfURDcqwwRznUOtfEpSSgdUi2gSFXaguEJ0gIx3SMubzTOcirkta43X+k5 i5mvRkSwtY7TpaFCJTquM+oxyHNNB03DJDu1DZBFZr1uaGYzFQ03bjRGO/bwkWM4 1+j3lb2JsJYBVmCKBMH6xAAe2IwjHRxDNoV52nPw7zASvH8OuN8Z8BuorKfuMTiH s3R2V+tNA1Y8s2J4staE =ovVC -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Sep 06 07:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7797: Configure the use of from header for epg signing. Resent-From: Daiki Ueno Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Fri, 28 Jan 2011 01:00:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7797 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: Daniel Dehennin , 7797@debbugs.gnu.org, ding@gnus.org, rfrancoise@debian.org, Ashish SHUKLA , Luca Capello Received: via spool by 7797-submit@debbugs.gnu.org id=B7797.129617639114281 (code B ref 7797); Fri, 28 Jan 2011 01:00:04 +0000 Received: (at 7797) by debbugs.gnu.org; 28 Jan 2011 00:59:51 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Picgo-0003iI-He for submit@debbugs.gnu.org; Thu, 27 Jan 2011 19:59:50 -0500 Received: from ivory4.scn-net.ne.jp ([219.117.176.192]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Picgl-0003i3-5D for 7797@debbugs.gnu.org; Thu, 27 Jan 2011 19:59:48 -0500 Received: from ([192.168.0.187]) (envelope sender: ) by ivory4.scn-net.ne.jp with Active!Hunter esmtp server; Fri, 28 Jan 2011 10:07:55 +0900 Received: Received: from well-done.deisui.org (g187018.scn-net.ne.jp [202.83.187.18]) (authenticated) by blue17.scn-net.ne.jp (unknown) with ESMTP id p0S17qDY003446; Fri, 28 Jan 2011 10:07:52 +0900 Message-ID: From: Daiki Ueno References: <87lj2kd1yj.fsf@gismo.pca.it> <87y66wn972.fsf@broken.deisui.org> <874o9lehkl.fsf@gismo.pca.it> <87r5cpow4q.fsf@gismo.pca.it> <877heghbc2.fsf@hati.baby-gnu.org> <87aaj0wozw.fsf@hati.baby-gnu.org> <87sjwku5zp.fsf@gnus.org> Date: Fri, 28 Jan 2011 10:08:08 +0900 In-Reply-To: (Julien Danjou's message of "Thu, 27 Jan 2011 18:18:42 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) Julien Danjou writes: >> It looks good to me. Since I'm thinking of another tweak related to >> signing, I'll apply this patch soon unless anyone objects. > > Sorry, I got bitten by this today and fixed it without seeing this > thread before. I've just fixed the same way Daniel did, so no harm done. > :) Cool, thanks :) I just installed another tweak now (commit 5999faac), which implements Luca's suggestion #2 at: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7797#16 Testing would be appreciated. Regards, -- Daiki Ueno From unknown Sat Sep 06 07:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7797: Configure the use of from header for epg signing. In-Reply-To: <874o9lehkl.fsf@gismo.pca.it> Resent-From: Luca Capello Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Wed, 09 Feb 2011 11:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7797 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: 7797@debbugs.gnu.org Cc: Daniel Dehennin , Daiki Ueno , ding@gnus.org, rfrancoise@debian.org, Lars Ingebrigtsen , Ashish SHUKLA Received: via spool by 7797-submit@debbugs.gnu.org id=B7797.129725251916259 (code B ref 7797); Wed, 09 Feb 2011 11:56:02 +0000 Received: (at 7797) by debbugs.gnu.org; 9 Feb 2011 11:55:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pn8di-0004EC-T4 for submit@debbugs.gnu.org; Wed, 09 Feb 2011 06:55:19 -0500 Received: from [151.1.160.141] (helo=clio.genesi.eu) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pn8df-0004Du-Rc for 7797@debbugs.gnu.org; Wed, 09 Feb 2011 06:55:17 -0500 Received: from localhost (localhost [127.0.0.1]) by clio.genesi.eu (Postfix) with ESMTP id DBAA19EF83; Wed, 9 Feb 2011 13:03:58 +0100 (CET) X-Virus-Scanned: amavisd-new at genesi.eu Received: from clio.genesi.eu ([127.0.0.1]) by localhost (clio.genesi.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kFt8W3hFBa+d; Wed, 9 Feb 2011 13:03:53 +0100 (CET) Received: from mantissa.pca.it (ip-85-135.sn2.eutelia.it [83.211.85.135]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by clio.genesi.eu (Postfix) with ESMTPS id 30ACE9EF80; Wed, 9 Feb 2011 13:03:53 +0100 (CET) Received: from gismo.pca.it (unknown [129.194.56.110]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mantissa.pca.it (Postfix) with ESMTPSA id 5C771221F5; Wed, 9 Feb 2011 13:03:52 +0100 (CET) Received: by gismo.pca.it (Postfix, from userid 1000) id 8CF6D2C115; Wed, 9 Feb 2011 13:03:51 +0100 (CET) From: Luca Capello References: <87lj2kd1yj.fsf@gismo.pca.it> <87y66wn972.fsf@broken.deisui.org> <874o9lehkl.fsf@gismo.pca.it> <87r5cpow4q.fsf@gismo.pca.it> <877heghbc2.fsf@hati.baby-gnu.org> <87aaj0wozw.fsf@hati.baby-gnu.org> <87sjwku5zp.fsf@gnus.org> Date: Wed, 09 Feb 2011 13:03:46 +0100 Message-ID: <87tygd9zz1.fsf@gismo.pca.it> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.5 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi there! I am sorry for being late, preparing/attending FOSDEM got all my time. On Fri, 28 Jan 2011 02:08:08 +0100, Daiki Ueno wrote: > Julien Danjou writes: > >>> It looks good to me. Since I'm thinking of another tweak related to >>> signing, I'll apply this patch soon unless anyone objects. >> >> Sorry, I got bitten by this today and fixed it without seeing this >> thread before. I've just fixed the same way Daniel did, so no harm done. >> :) > > Cool, thanks :) I just installed another tweak now (commit 5999faac), > which implements Luca's suggestion #2 at: > > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D7797#16 > > Testing would be appreciated. I backported your patch on top of your first one [1] and Julien's [2] and everything is working as expected, thanks: (setq mml2015-signers nil) =3D> Passphrase for D91D57A03BE9F36D Luca Capello : (setq mml2015-signers (list "3BE9F36D")) =3D> Passphrase for D91D57A03BE9F36D Luca Capello (setq mml2015-signers (list "9DDB992B")) =3D> No secret key for 9DDB992B; skip it? (y or n) y Passphrase for D91D57A03BE9F36D Luca Capello : (setq mml2015-signers (list "9DDB992B" "3BE9F36D")) =3D> No secret key for 9DDB992B; skip it? (y or n) y Passphrase for D91D57A03BE9F36D Luca Capello : [1] [2] FWIW I would have preferred Daniel's patch, the variable name was a bit clearer and more self-explicative, but never mind, what is important is that it is fixed! BTW, the description for `mml2015-signers' still needs =2D-8<---------------cut here---------------start------------->8--- diff --git a/lisp/mml2015.el b/lisp/mml2015.el index 1271168..df106bb 100644 =2D-- a/lisp/mml2015.el +++ b/lisp/mml2015.el @@ -116,7 +116,7 @@ Whether the passphrase is cached at all is controlled by :type 'integer) =20 (defcustom mml2015-signers nil =2D "A list of your own key ID which will be used to sign a message. + "A list of your own key ID(s) which will be used to sign a message. If set, it overrides the setting of `mml2015-sign-with-sender'." :group 'mime-security :type '(repeat (string :tag "Key ID"))) =2D-8<---------------cut here---------------end--------------->8--- Apart from the above, given that all the patches have been included in the emacs tree, this bug should be closed, I leave this to you ;-) Thx, bye, Gismo / Luca --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBCgAGBQJNUoKlAAoJENkdV6A76fNtpOoP/jLkWeNZvb51on9AUKzpGDIc gB/JLiMWtO8XUZAjPDgClCjnOu5VKtn3wyeDA4cx+AaMQdKQm393ghYl9/frqmGh 2WzpW8oSIdECRxFiemjY5vQKR0RZqqkKfDlv9xTkZ9zTyFw7NDRBKksQnC5AttTN JFR4U4jgS0gpsKI7b84ecmrCA+w7hNMSMSx8d5EcpXixKoDsieHrDPLInLAuXf+4 IQOewM5PECTxDEysLWLp4GM7D30ZOu+Fhv3g74mngGGyT2dGkjIMnA6VPKgEH/3a uvSU69Jd5QhYsMC6fCp4CA8Yry4BtHffBvjCgU4JmGahGfvo5Ex41zvO9IgTRTRS ZWM1m+UZmeldc5Fs8cTkMDUl0VSqwh4XGhh3N2lTdNI37AtUp/rz+R7YLBsP+7iT KsOpVawdDZgoFMKn6j2gzNW0TW5GfbvxvWRuGy8/4S3C5K0RIxhbcAyFjkNgimt2 MxEOYqXhQTVuikKBzrRS+6VHDdu0Xd5VTfv9xrXavXq2EV/lGjoGG76+FoeL5iPw BksHyXZCXjchxb4+8gDiE3Tg459j/OY5GJ2V4nqnNIkbEJvHiS+TTV6xDzNSO80K Fg+mauheEyA0x1KNGSHv7QGzdcvxWPKJyFy4qPrhR3nZOBQPO43NthQc0aOsFK1E PcWu7HnoNhinzK8Z1IGm =BJtj -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 11 20:21:53 2011 Received: (at control) by debbugs.gnu.org; 12 Feb 2011 01:21:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Po4BM-0006sc-Rs for submit@debbugs.gnu.org; Fri, 11 Feb 2011 20:21:53 -0500 Received: from vm-emlprdomr-04.its.yale.edu ([130.132.50.145]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Po4BK-0006sQ-Lg for control@debbugs.gnu.org; Fri, 11 Feb 2011 20:21:51 -0500 Received: from furball (dhcp128036014062.central.yale.edu [128.36.14.62]) (authenticated bits=0) by vm-emlprdomr-04.its.yale.edu (8.14.4/8.14.4) with ESMTP id p1C1UeLh016363 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 11 Feb 2011 20:30:41 -0500 Received: by furball (Postfix, from userid 1000) id 6750316055E; Fri, 11 Feb 2011 20:30:39 -0500 (EST) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 7797 Date: Fri, 11 Feb 2011 20:30:39 -0500 Message-ID: <87y65mkpj4.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.145 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) close 7797 thanks