From unknown Wed Jun 25 00:27:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26298: 26.0.50; Gnus fails to sign mail with PGP Resent-From: Torsten Bronger Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Mar 2017 12:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 26298 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 26298@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.149078956227139 (code B ref -1); Wed, 29 Mar 2017 12:13:01 +0000 Received: (at submit) by debbugs.gnu.org; 29 Mar 2017 12:12:42 +0000 Received: from localhost ([127.0.0.1]:50235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctCSv-00073f-KG for submit@debbugs.gnu.org; Wed, 29 Mar 2017 08:12:42 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctCSt-00073O-3u for submit@debbugs.gnu.org; Wed, 29 Mar 2017 08:12:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ctCSl-0004Hv-KM for submit@debbugs.gnu.org; Wed, 29 Mar 2017 08:12:33 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53096) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ctCSl-0004Hd-GN for submit@debbugs.gnu.org; Wed, 29 Mar 2017 08:12:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ctCSi-0004XE-N5 for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2017 08:12:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ctCSd-00047t-I6 for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2017 08:12:28 -0400 Received: from mx-out-2.rwth-aachen.de ([134.130.5.187]:60910) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ctCSc-00044F-UF for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2017 08:12:23 -0400 X-IronPort-AV: E=Sophos;i="5.36,241,1486422000"; d="scan'208";a="493664910" Received: from rwthex-s2-b.rwth-ad.de ([134.130.26.155]) by mx-2.rz.rwth-aachen.de with ESMTP; 29 Mar 2017 14:12:16 +0200 Received: from wilson (109.90.2.239) by rwthex-s2-b.rwth-ad.de (2002:8682:1a9b::8682:1a9b) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Wed, 29 Mar 2017 14:12:15 +0200 From: Torsten Bronger Date: Wed, 29 Mar 2017 14:15:06 +0200 Message-ID: <87h92cp9dh.fsf@wilson.bronger.org> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [109.90.2.239] X-ClientProxiedBy: rwthex-s1-b.rwth-ad.de (2002:8682:1a99::8682:1a99) To rwthex-s2-b.rwth-ad.de (2002:8682:1a9b::8682:1a9b) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) If I sign an email with C-c RET s o and try to send it, Emacs aborts with the following backtrace: Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil) mml1991-epg-sign((part (sign . "pgp") (tag-location . 845) (contents . "asdsd\n-- \nTorsten Bronger\n"))) mml1991-sign((part (sign . "pgp") (tag-location . 845) (contents . "asdsd\n-- \nTorsten Bronger\n"))) (or (mml1991-sign cont) (error "Signing failed... inspect message logs for errors")) mml-pgp-sign-buffer((part (sign . "pgp") (tag-location . 845) (contents . "asdsd\n-- \nTorsten Bronger\n"))) mml-generate-mime-1((part (sign . "pgp") (tag-location . 845) (contents . "asdsd\n-- \nTorsten Bronger\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) funcall-interactively(message-send-and-exit nil) call-interactively(message-send-and-exit nil nil) command-execute(message-send-and-exit) In GNU Emacs 26.0.50.1 (x86_64-pc-linux-gnu) of 2017-03-20 built on wilson Repository revision: 09d50834206ff48bf6ac214e8cfb31d281ba993c Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Ubuntu 16.04.1 LTS Recent messages: Sending... Mark set [2 times] Entering debugger... Auto-saving...done Quit [4 times] Making completion list... Quit Mark set next-line: End of buffer [2 times] Making completion list... Configured using: 'configure --prefix=/usr/local/ --mandir=/usr/local/share/man/ --infodir=/usr/local/share/info/ --with-x-toolkit=no --without-makeinfo --with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-x' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS NOTIFY GNUTLS LIBXML2 FREETYPE XFT ZLIB X11 Important settings: value of $EMACSLOADPATH: /home/bronger/.emacs.d/lisp: value of $LANG: de_DE.UTF-8 locale-coding-system: utf-8-unix Major mode: Debugger Minor modes in effect: diff-auto-refine-mode: t global-auto-revert-mode: t shell-dirtrack-mode: t savehist-mode: t desktop-save-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t Load-path shadows: /home/bronger/.emacs.d/lisp/visual-basic-mode hides /home/bronger/.emacs.d/lisp/nxhtml/related/visual-basic-mode /home/bronger/.emacs.d/lisp/yasnippet/snippets/fundamental-mode/.yas-setup hides /home/bronger/.emacs.d/lisp/yasnippet/snippets/prog-mode/.yas-setup /home/bronger/.emacs.d/lisp/yasnippet/snippets/fundamental-mode/.yas-setup hides /home/bronger/.emacs.d/lisp/yasnippet/snippets/python-mode/.yas-setup /home/bronger/.emacs.d/lisp/yasnippet/snippets/fundamental-mode/.yas-setup hides /home/bronger/.emacs.d/lisp/yasnippet/yasmate/snippets/html-mode/.yas-setup /home/bronger/.emacs.d/lisp/yasnippet/snippets/fundamental-mode/.yas-setup hides /home/bronger/.emacs.d/lisp/yasnippet/yasmate/snippets/objc-mode/.yas-setup /home/bronger/.emacs.d/lisp/yasnippet/yasmate/snippets/html-mode/.yasmate-extra-substitutions hides /home/bronger/.emacs.d/lisp/yasnippet/yasmate/snippets/rails-mode/.yasmate-extra-substitutions /home/bronger/.emacs.d/lisp/yasnippet/snippets/fundamental-mode/.yas-setup hides /home/bronger/.emacs.d/lisp/yasnippet/yasmate/snippets/rails-mode/.yas-setup /home/bronger/.emacs.d/lisp/yasnippet/yasmate/snippets/html-mode/.yasmate-extra-substitutions hides /home/bronger/.emacs.d/lisp/yasnippet/yasmate/snippets/ruby-mode/.yasmate-extra-substitutions /home/bronger/.emacs.d/lisp/yasnippet/snippets/fundamental-mode/.yas-setup hides /home/bronger/.emacs.d/lisp/yasnippet/yasmate/snippets/ruby-mode/.yas-setup /home/bronger/.emacs.d/lisp/mmm/mmm-noweb hides /usr/local/share/emacs/site-lisp/mmm-noweb /home/bronger/.emacs.d/lisp/po-mode hides /usr/local/share/emacs/site-lisp/po-mode /home/bronger/.emacs.d/lisp/mmm/mmm-erb hides /usr/local/share/emacs/site-lisp/mmm-erb /home/bronger/.emacs.d/lisp/browse-kill-ring hides /usr/local/share/emacs/site-lisp/browse-kill-ring /home/bronger/.emacs.d/lisp/mmm/mmm-vars hides /usr/local/share/emacs/site-lisp/mmm-vars /home/bronger/.emacs.d/lisp/mmm/mmm-cweb hides /usr/local/share/emacs/site-lisp/mmm-cweb /home/bronger/.emacs.d/lisp/mmm/mmm-auto hides /usr/local/share/emacs/site-lisp/mmm-auto /home/bronger/.emacs.d/lisp/mmm/mmm-rpm hides /usr/local/share/emacs/site-lisp/mmm-rpm /home/bronger/.emacs.d/lisp/mmm/mmm-univ hides /usr/local/share/emacs/site-lisp/mmm-univ /home/bronger/.emacs.d/lisp/mmm/mmm-mode hides /usr/local/share/emacs/site-lisp/mmm-mode /home/bronger/.emacs.d/lisp/mmm/mmm-sample hides /usr/local/share/emacs/site-lisp/mmm-sample /home/bronger/.emacs.d/lisp/mmm/mmm-region hides /usr/local/share/emacs/site-lisp/mmm-region /home/bronger/.emacs.d/lisp/mmm/mmm-class hides /usr/local/share/emacs/site-lisp/mmm-class /home/bronger/.emacs.d/lisp/auctex hides /usr/local/share/emacs/site-lisp/auctex /home/bronger/.emacs.d/lisp/mmm/mmm-cmds hides /usr/local/share/emacs/site-lisp/mmm-cmds /home/bronger/.emacs.d/lisp/mmm/mmm-compat hides /usr/local/share/emacs/site-lisp/mmm-compat /home/bronger/.emacs.d/lisp/mmm/mmm-utils hides /usr/local/share/emacs/site-lisp/mmm-utils /home/bronger/.emacs.d/lisp/mmm/mmm-mason hides /usr/local/share/emacs/site-lisp/mmm-mason /home/bronger/.emacs.d/lisp/mmm/mmm-myghty hides /usr/local/share/emacs/site-lisp/mmm-myghty /home/bronger/.emacs.d/lisp/tex-site hides /usr/local/share/emacs/site-lisp/tex-site /home/bronger/.emacs.d/lisp/preview-latex hides /usr/local/share/emacs/site-lisp/preview-latex /home/bronger/.emacs.d/lisp/bbdb/bbdb-xemacs hides /usr/local/share/emacs/site-lisp/bbdb/bbdb-xemacs /home/bronger/.emacs.d/lisp/bbdb/bbdb hides /usr/local/share/emacs/site-lisp/bbdb/bbdb /home/bronger/.emacs.d/lisp/bbdb/bbdb-whois hides /usr/local/share/emacs/site-lisp/bbdb/bbdb-whois /home/bronger/.emacs.d/lisp/bbdb/bbdb-gnus hides /usr/local/share/emacs/site-lisp/bbdb/bbdb-gnus /home/bronger/.emacs.d/lisp/bbdb/bbdb-sc hides /usr/local/share/emacs/site-lisp/bbdb/bbdb-sc /home/bronger/.emacs.d/lisp/bbdb/bbdb-merge hides /usr/local/share/emacs/site-lisp/bbdb/bbdb-merge /home/bronger/.emacs.d/lisp/bbdb/bbdb-autoloads hides /usr/local/share/emacs/site-lisp/bbdb/bbdb-autoloads /home/bronger/.emacs.d/lisp/bbdb/bbdb-hooks hides /usr/local/share/emacs/site-lisp/bbdb/bbdb-hooks /home/bronger/.emacs.d/lisp/bbdb/bbdb-com hides /usr/local/share/emacs/site-lisp/bbdb/bbdb-com /home/bronger/.emacs.d/lisp/bbdb/bbdb-print hides /usr/local/share/emacs/site-lisp/bbdb/bbdb-print /home/bronger/.emacs.d/lisp/bbdb/bbdb-migrate hides /usr/local/share/emacs/site-lisp/bbdb/bbdb-migrate /home/bronger/.emacs.d/lisp/bbdb/bbdb-reportmail hides /usr/local/share/emacs/site-lisp/bbdb/bbdb-reportmail /home/bronger/.emacs.d/lisp/bbdb/bbdb-vm hides /usr/local/share/emacs/site-lisp/bbdb/bbdb-vm /home/bronger/.emacs.d/lisp/bbdb/bbdb-gui hides /usr/local/share/emacs/site-lisp/bbdb/bbdb-gui /home/bronger/.emacs.d/lisp/bbdb/bbdb-ftp hides /usr/local/share/emacs/site-lisp/bbdb/bbdb-ftp /home/bronger/.emacs.d/lisp/bbdb/bbdb-w3 hides /usr/local/share/emacs/site-lisp/bbdb/bbdb-w3 /home/bronger/.emacs.d/lisp/bbdb/bbdb-srv hides /usr/local/share/emacs/site-lisp/bbdb/bbdb-srv /home/bronger/.emacs.d/lisp/bbdb/bbdb-snarf hides /usr/local/share/emacs/site-lisp/bbdb/bbdb-snarf /home/bronger/.emacs.d/lisp/bbdb/bbdb-rmail hides /usr/local/share/emacs/site-lisp/bbdb/bbdb-rmail /home/bronger/.emacs.d/lisp/bbdb/bbdb-mhe hides /usr/local/share/emacs/site-lisp/bbdb/bbdb-mhe /home/bronger/.emacs.d/lisp/w3m/w3m-cookie hides /usr/local/share/emacs/site-lisp/w3m/w3m-cookie /home/bronger/.emacs.d/lisp/w3m/w3m-bug hides /usr/local/share/emacs/site-lisp/w3m/w3m-bug /home/bronger/.emacs.d/lisp/w3m/bookmark-w3m hides /usr/local/share/emacs/site-lisp/w3m/bookmark-w3m /home/bronger/.emacs.d/lisp/w3m/w3m-symbol hides /usr/local/share/emacs/site-lisp/w3m/w3m-symbol /home/bronger/.emacs.d/lisp/w3m/w3m-bookmark hides /usr/local/share/emacs/site-lisp/w3m/w3m-bookmark /home/bronger/.emacs.d/lisp/w3m/w3m-mail hides /usr/local/share/emacs/site-lisp/w3m/w3m-mail /home/bronger/.emacs.d/lisp/w3m/w3m-session hides /usr/local/share/emacs/site-lisp/w3m/w3m-session /home/bronger/.emacs.d/lisp/w3m/w3m-lnum hides /usr/local/share/emacs/site-lisp/w3m/w3m-lnum /home/bronger/.emacs.d/lisp/w3m/w3m-util hides /usr/local/share/emacs/site-lisp/w3m/w3m-util /home/bronger/.emacs.d/lisp/w3m/w3m hides /usr/local/share/emacs/site-lisp/w3m/w3m /home/bronger/.emacs.d/lisp/w3m/w3m-search hides /usr/local/share/emacs/site-lisp/w3m/w3m-search /home/bronger/.emacs.d/lisp/w3m/w3m-image hides /usr/local/share/emacs/site-lisp/w3m/w3m-image /home/bronger/.emacs.d/lisp/w3m/w3m-load hides /usr/local/share/emacs/site-lisp/w3m/w3m-load /home/bronger/.emacs.d/lisp/w3m/w3m-dtree hides /usr/local/share/emacs/site-lisp/w3m/w3m-dtree /home/bronger/.emacs.d/lisp/w3m/w3m-ccl hides /usr/local/share/emacs/site-lisp/w3m/w3m-ccl /home/bronger/.emacs.d/lisp/w3m/w3m-weather hides /usr/local/share/emacs/site-lisp/w3m/w3m-weather /home/bronger/.emacs.d/lisp/w3m/w3m-tabmenu hides /usr/local/share/emacs/site-lisp/w3m/w3m-tabmenu /home/bronger/.emacs.d/lisp/w3m/w3m-form hides /usr/local/share/emacs/site-lisp/w3m/w3m-form /home/bronger/.emacs.d/lisp/w3m/w3m-perldoc hides /usr/local/share/emacs/site-lisp/w3m/w3m-perldoc /home/bronger/.emacs.d/lisp/w3m/w3m-namazu hides /usr/local/share/emacs/site-lisp/w3m/w3m-namazu /home/bronger/.emacs.d/lisp/w3m/w3m-rss hides /usr/local/share/emacs/site-lisp/w3m/w3m-rss /home/bronger/.emacs.d/lisp/w3m/w3m-favicon hides /usr/local/share/emacs/site-lisp/w3m/w3m-favicon /home/bronger/.emacs.d/lisp/w3m/mime-w3m hides /usr/local/share/emacs/site-lisp/w3m/mime-w3m /home/bronger/.emacs.d/lisp/w3m/w3m-antenna hides /usr/local/share/emacs/site-lisp/w3m/w3m-antenna /home/bronger/.emacs.d/lisp/w3m/w3m-hist hides /usr/local/share/emacs/site-lisp/w3m/w3m-hist /home/bronger/.emacs.d/lisp/w3m/w3m-filter hides /usr/local/share/emacs/site-lisp/w3m/w3m-filter /home/bronger/.emacs.d/lisp/w3m/w3m-proc hides /usr/local/share/emacs/site-lisp/w3m/w3m-proc /home/bronger/.emacs.d/lisp/w3m/octet hides /usr/local/share/emacs/site-lisp/w3m/octet /home/bronger/.emacs.d/lisp/w3m/w3m-ucs hides /usr/local/share/emacs/site-lisp/w3m/w3m-ucs /home/bronger/.emacs.d/lisp/w3m/mew-w3m hides /usr/local/share/emacs/site-lisp/w3m/mew-w3m /home/bronger/.emacs.d/lisp/w3m/w3m-ems hides /usr/local/share/emacs/site-lisp/w3m/w3m-ems /home/bronger/.emacs.d/lisp/w3m/w3m-fb hides /usr/local/share/emacs/site-lisp/w3m/w3m-fb Features: (shadow emacsbug sendmail misearch multi-isearch eieio-opt speedbar sb-image ezimage dframe help-fns radix-tree debug mml1991 nnir gnus-picon sort smiley gnus-cite gnus-async gnus-bcklg gnus-draft gnus-ml disp-table nndraft nnmh gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg nnml nnfolder gnus-cache bbdb-gnus bbdb-snarf mail-extr bbdb-com warnings network-stream nsm starttls nntp gnus-topic add-log gmane gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7 netrc nnoo gnus-spec gnus-int gnus-range message rfc822 mml mml-sec epa epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win vc-cvs go-oracle flyspell ispell conf-mode js moz imenu cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs css-mode eww puny mm-url gnus nnheader url-queue shr svg rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap sgml-mode dom nxml-util nxml-enc xmltok hideshow dired-aux reftex-dcr reftex reftex-loaddefs reftex-vars font-latex latexenc vc-git diff-mode python tramp-sh json map darkroom cql-mode sql view rust-mode swift-mode go-errcheck go-mode url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap find-file ffap thingatpt etags xref project yaml-mode dockerfile-mode derived rx sh-script smie executable dired-x adaptive-wrap vc-dispatcher vc-bzr org-element org-rmail org-mhe org-irc org-info org-gnus gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils org-docview org-bibtex bibtex org-bbdb org-w3m org-agenda ob-python org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint ob-core ob-eval org-compat org-macs org-loaddefs find-func server w3m browse-url doc-view subr-x jka-compr dired dired-loaddefs image-mode w3m-hist w3m-fb bookmark-w3m w3m-ems wid-edit w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util rst compile browse-kill-ring mmm-mode mmm-univ mmm-class mmm-region mmm-auto mmm-vars mmm-utils mmm-compat cl bbdb-autoloads bbdb timezone cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays hol-loaddefs appt diary-lib diary-loaddefs cal-menu calendar cal-loaddefs preview prv-emacs info reporter latex easy-mmode tex-style tex-buf tex dbus xml mm-util mail-prsvr autorevert filenotify preview-latex tex-site auto-loads edmacro kmacro tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete comint ansi-color ring parse-time format-spec advice savehist desktop frameset delsel cus-start cus-load finder-inf package epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting x multi-tty make-network-process emacs) Memory information: ((conses 16 871277 112392) (symbols 48 136658 1) (miscs 40 8775 673) (strings 32 201286 28052) (string-bytes 1 6150598) (vectors 16 80569) (vector-slots 8 1398799 46356) (floats 8 1890 586) (intervals 56 27999 212) (buffers 976 407) (heap 1024 99104 3681)) -- Torsten Bronger From unknown Wed Jun 25 00:27:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26298: 26.0.50; Gnus fails to sign mail with PGP Resent-From: Toon Claes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Jul 2017 22:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26298 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Torsten Bronger Cc: 26298@debbugs.gnu.org Received: via spool by 26298-submit@debbugs.gnu.org id=B26298.150119476330886 (code B ref 26298); Thu, 27 Jul 2017 22:33:01 +0000 Received: (at 26298) by debbugs.gnu.org; 27 Jul 2017 22:32:43 +0000 Received: from localhost ([127.0.0.1]:59018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1darKk-000825-PZ for submit@debbugs.gnu.org; Thu, 27 Jul 2017 18:32:42 -0400 Received: from mailout-l3b-97.contactoffice.com ([212.3.242.97]:42660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1darKi-00081q-Uw for 26298@debbugs.gnu.org; Thu, 27 Jul 2017 18:32:41 -0400 Received: from smtpauth2.co-bxl (smtpauth2.co-bxl [10.2.0.24]) by mailout-l3b-97.contactoffice.com (Postfix) with ESMTP id E7B53AE7; Fri, 28 Jul 2017 00:32:32 +0200 (CEST) Received: from T-437.local ([81.83.195.177]) by smtp.contactoffice.com (envelope-from ) with ESMTPA ; Fri, 28 Jul 2017 00:32:31 +0200 (CEST) From: Toon Claes References: <87h92cp9dh.fsf@wilson.bronger.org> Date: Fri, 28 Jul 2017 00:32:31 +0200 (CEST) In-Reply-To: <87h92cp9dh.fsf@wilson.bronger.org> (Torsten Bronger's message of "Wed, 29 Mar 2017 14:15:06 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-ContactOffice-Account: com:91601486 X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Torsten Bronger writes: > If I sign an email with C-c RET s o and try to send it, Emacs aborts > with the following backtrace: > > Debugger entered--Lisp error: (wrong-type-argument char-or-string-p > nil) I am getting the same error. I am using the following line to trigger my mails being signed: <#secure method=pgpmime mode=sign> Another thing I've noticed. When I manually sign a file with epa-sign-file, it asks my passphrase and signs the file correctly. When I afterwards try to send a signed mail, it is also signed correctly. So it seems pinentry is failing, not the signing itself. I'm having this problem for quite some time, and I am frequently building a new emacs from master. My current version: GNU Emacs 26.0.50 (build 2, x86_64-apple-darwin16.6.0, NS appkit-1504.83 Version 10.12.5 (Build 16F73)) of 2017-06-26 -- Toon From unknown Wed Jun 25 00:27:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26298: 26.0.50; Gnus fails to sign mail with PGP Resent-From: Toon Claes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Aug 2017 20:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26298 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Torsten Bronger Cc: 26298@debbugs.gnu.org Received: via spool by 26298-submit@debbugs.gnu.org id=B26298.1502742816821 (code B ref 26298); Mon, 14 Aug 2017 20:34:02 +0000 Received: (at 26298) by debbugs.gnu.org; 14 Aug 2017 20:33:36 +0000 Received: from localhost ([127.0.0.1]:36791 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhM3L-0000DB-UN for submit@debbugs.gnu.org; Mon, 14 Aug 2017 16:33:36 -0400 Received: from mailout-l3b-97.contactoffice.com ([212.3.242.97]:59525) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhM3K-0000D5-GY for 26298@debbugs.gnu.org; Mon, 14 Aug 2017 16:33:34 -0400 Received: from smtpauth1.co-bxl (smtpauth1.co-bxl [10.2.0.15]) by mailout-l3b-97.contactoffice.com (Postfix) with ESMTP id 6EFE254C; Mon, 14 Aug 2017 22:33:28 +0200 (CEST) Received: from T-437 ([81.83.195.177]) by smtp.contactoffice.com (envelope-from ) with ESMTPA ; Mon, 14 Aug 2017 22:33:27 +0200 (CEST) From: Toon Claes In-Reply-To: <87h92cp9dh.fsf@wilson.bronger.org> (Torsten Bronger's message of "Wed, 29 Mar 2017 14:15:06 +0200") References: <87h92cp9dh.fsf@wilson.bronger.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (darwin) Supersedes: Date: Mon, 14 Aug 2017 22:33:28 +0200 (CEST) Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-ContactOffice-Account: com:91601486 X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Torsten Bronger writes: > Debugger entered--Lisp error: (wrong-type-argument char-or-string-p > nil) I've been digging deeper into this bug. What I've found so far, `epg-start-sign' (or `epg-wait-for-completion', I am not sure) called in `epg-sign-string' is failing with the error: gpg: signing failed: Inappropriate ioctl for device I have to stop digging for today, but I'd like to know why `epg-sign-string' fails to get passphrase, while `epa-sign-file' succeeds. -- Toon From unknown Wed Jun 25 00:27:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26298: 26.0.50; Gnus fails to sign mail with PGP Resent-From: Toon Claes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Aug 2017 21:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26298 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Torsten Bronger Cc: 26298@debbugs.gnu.org Received: via spool by 26298-submit@debbugs.gnu.org id=B26298.15027455772676 (code B ref 26298); Mon, 14 Aug 2017 21:20:02 +0000 Received: (at 26298) by debbugs.gnu.org; 14 Aug 2017 21:19:37 +0000 Received: from localhost ([127.0.0.1]:37101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhMls-0000h6-N2 for submit@debbugs.gnu.org; Mon, 14 Aug 2017 17:19:36 -0400 Received: from mailout-l3b-97.contactoffice.com ([212.3.242.97]:59610) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhMlr-0000gy-9Z for 26298@debbugs.gnu.org; Mon, 14 Aug 2017 17:19:35 -0400 Received: from smtpauth2.co-bxl (smtpauth2.co-bxl [10.2.0.24]) by mailout-l3b-97.contactoffice.com (Postfix) with ESMTP id 1C2AF418; Mon, 14 Aug 2017 23:19:28 +0200 (CEST) Received: from T-437 ([81.83.195.177]) by smtp.contactoffice.com (envelope-from ) with ESMTPA ; Mon, 14 Aug 2017 23:19:26 +0200 (CEST) From: Toon Claes References: <87h92cp9dh.fsf@wilson.bronger.org> Date: Mon, 14 Aug 2017 23:19:26 +0200 (CEST) In-Reply-To: (Toon Claes's message of "Mon, 14 Aug 2017 22:33:27 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (darwin) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-ContactOffice-Account: com:91601486 X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --=-=-= Content-Type: text/plain I have found what is happening. If I add the following line to `mml-secure-epg-sign', I can successfully sign my email: #+begin_src emacs-lisp :tangle yes (setf (epg-context-pinentry-mode context) 'loopback) #+end_src Now I also understand why `epa-sign-file' works, I have set `(setq epa-pinentry-mode 'loopback)' in my init.el. But, I could use some advice on building a proper fix that would work for everyone. We could do something similar like as epa.el does, and add yet another defcustom, but doesn't feel very DRY. So I hope someone can chime in to give some advice. -- Toon --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEqpqkV/lEuXKD1KF3MRQ6gtMrOJcFAlmSE9cACgkQMRQ6gtMr OJcjVxAAiItmz4jGoS2gd5oTrrH4MWjWwD+xXoan8wQwV2DQjmi4yFl/gBg+juZl ITj5Avc4WcCj+AHnjKovGhD2cDiedJbB/BndLQ+zIG7YaBSitvgApEujNFeZUWA6 sx5hDIPXs5ni31HR5xlpT5YZe58GM+0U7nzf15LIH5UtM0VdXkRYurgfhYhOh1Ra H69FcSGVjnN6anEOLsyD7BCkWzcGevyABw+TljxUcFf+BMU1C6y1aG8LZWnlYUAd 87A2U//dZMnmP3wMMD6SJeYOEaP8xCleUQkFbw4AkhcgN+FH3vmrzHI0iPAeh3XA wRMWlsotAE8/sDKCe0MRtiof25ZzV2ARon95SF7/dIARWN3v/lcmGI0PNFk1SM/q a/xRT8nAWG7JcAzCHjwsVE6cgvccxCP5bu0r+kRYb+RQ8HrnnQyHfGk9e0LFRZaN Hkf+r2JeD7RhrGoRXp6bAWTgeFuag5aK3MY1x76zhyGcpRypPC18XD20Pzbb5R50 xlUHFYqK5rEGfskEhG86n/1SLn3oZfr9i/9djK24reu+lfKkWYTyZ3uYQ7hOHxAx a08bPfSnQWv2t98ij2FFUhzm493pKKHUATPM8snyG8epcHD2nXWr7cWMMVsnpfuG 88rgCrqrxb7rEuLPre2Rb0ujbRfBG66xXvA34ZEpWShAXXWs7p8= =Evxs -----END PGP SIGNATURE----- --=-=-=-- From unknown Wed Jun 25 00:27:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26298: 26.0.50; Gnus fails to sign mail with PGP Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Aug 2017 23:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26298 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Toon Claes Cc: 26298@debbugs.gnu.org, Torsten Bronger Received: via spool by 26298-submit@debbugs.gnu.org id=B26298.15027542987278 (code B ref 26298); Mon, 14 Aug 2017 23:45:01 +0000 Received: (at 26298) by debbugs.gnu.org; 14 Aug 2017 23:44:58 +0000 Received: from localhost ([127.0.0.1]:37501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhP2Y-0001tK-IP for submit@debbugs.gnu.org; Mon, 14 Aug 2017 19:44:58 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:35161) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhP2X-0001tB-D0 for 26298@debbugs.gnu.org; Mon, 14 Aug 2017 19:44:57 -0400 Received: by mail-io0-f195.google.com with SMTP id h70so8401032ioi.2 for <26298@debbugs.gnu.org>; Mon, 14 Aug 2017 16:44:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=vSWmpNL4iXpLpX5swdgaAZ96OgyvdVcr1G+TvpFFghs=; b=Pbwunpg3DqlpylietZFgVw55UC2XvLbZDK9B1cXdxOek5ENx32xlfrLF3bn9k/p+Rw V5RL9S3+Rmz8Uoit/YUNjUT4ImJTX7m0KMHy+b9duXOBPNgx6vFtzHfBVm4JiRjyzNdU 30s2BamVriiOj3KmlAw0+qc//KycvidA18AmE1ADPe/okXU6+Pj3dzSds62+yfKghHb0 LmNK4oShiV2dz7cRPiX4GV90n9bzy0pVX1dhmSGkPvEwxEEmEcMxFPa+nJj4LH+ZRia/ Te3ue4JIaXidXT/BYSOGIN0GQdqyGKHK1Mqh8ydwTjr+fTQMnSujVrDwMCXW6J/1zQUi JaLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=vSWmpNL4iXpLpX5swdgaAZ96OgyvdVcr1G+TvpFFghs=; b=SRI8v1tcQ3eBZQy76sKXoV77cyneSfvKj0PtkH8OkVaHuo9D3T44YVahIAd/yPlr7z ToEoTkegmTp4FuW4G1M+9W7N2QjDJXrhO/dIrjewczAIb0RUyvlUsCcZqQwBLCkIr3+U DWcCeZKgJ7e1ctVvLbACq55s4fAWYTBbx/QKRgYeXtcvcjhMdRZm3dijxeBvU3+K1cCI omIW125SlXq7rcyubhwniUAtLmwneHa+nX6rLmonvSHWA2SW6FZCwYY9ZPAUaI4LCIlh Qirng/hPDOxX1sHQIpAbCSHkMdwrU7WJLff9zLuUA5rMwqZ0f9g8xfEg0zBWUh1CMxi/ 4DSQ== X-Gm-Message-State: AHYfb5jSOiXRdHDVpsg1eAglZnu4+nR6hX3iOk3j/DUSEDTLP0q1/eK9 F/06KkMpp90dK03R X-Received: by 10.107.164.199 with SMTP id d68mr20034820ioj.85.1502754291441; Mon, 14 Aug 2017 16:44:51 -0700 (PDT) Received: from zony ([45.2.119.49]) by smtp.googlemail.com with ESMTPSA id b126sm4147041ioe.67.2017.08.14.16.44.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Aug 2017 16:44:50 -0700 (PDT) From: npostavs@users.sourceforge.net References: <87h92cp9dh.fsf@wilson.bronger.org> Date: Mon, 14 Aug 2017 19:46:28 -0400 In-Reply-To: (Toon Claes's message of "Mon, 14 Aug 2017 23:19:26 +0200 (CEST)") Message-ID: <871sod1zmz.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) Toon Claes writes: > I have found what is happening. > > If I add the following line to `mml-secure-epg-sign', I can successfully > sign my email: > > #+begin_src emacs-lisp :tangle yes > (setf (epg-context-pinentry-mode context) 'loopback) > #+end_src > > Now I also understand why `epa-sign-file' works, I have set > `(setq epa-pinentry-mode 'loopback)' in my init.el. > > But, I could use some advice on building a proper fix that would work > for everyone. We could do something similar like as epa.el does, and add > yet another defcustom, but doesn't feel very DRY. > So I hope someone can chime in to give some advice. Does the patch at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23619#14 help? Maybe not since it doesn't look like mml1991.el calls epg-context-set-passphrase-callback, although mml2015.el does. Perhaps mml1991.el should too? From unknown Wed Jun 25 00:27:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26298: 26.0.50; Gnus fails to sign mail with PGP In-Reply-To: <87h92cp9dh.fsf@wilson.bronger.org> Resent-From: Toon Claes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Aug 2017 05:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26298 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: npostavs@users.sourceforge.net Cc: 26298@debbugs.gnu.org, Torsten Bronger Received: via spool by 26298-submit@debbugs.gnu.org id=B26298.150277646432526 (code B ref 26298); Tue, 15 Aug 2017 05:55:02 +0000 Received: (at 26298) by debbugs.gnu.org; 15 Aug 2017 05:54:24 +0000 Received: from localhost ([127.0.0.1]:37630 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhUo4-0008SY-EO for submit@debbugs.gnu.org; Tue, 15 Aug 2017 01:54:24 -0400 Received: from mailout-l3b-97.contactoffice.com ([212.3.242.97]:60130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhUo2-0008SQ-CB for 26298@debbugs.gnu.org; Tue, 15 Aug 2017 01:54:22 -0400 Received: from smtpauth1.co-bxl (smtpauth1.co-bxl [10.2.0.15]) by mailout-l3b-97.contactoffice.com (Postfix) with ESMTP id 2E43F40D; Tue, 15 Aug 2017 07:54:16 +0200 (CEST) Received: from T-437 ([81.83.195.177]) by smtp.contactoffice.com (envelope-from ) with ESMTPA ; Tue, 15 Aug 2017 07:54:13 +0200 (CEST) From: Toon Claes References: <87h92cp9dh.fsf@wilson.bronger.org> <871sod1zmz.fsf@users.sourceforge.net> Date: Tue, 15 Aug 2017 07:54:13 +0200 (CEST) Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (darwin) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-ContactOffice-Account: com:91601486 X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --=-=-= Content-Type: text/plain npostavs@users.sourceforge.net writes: > Does the patch at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23619#14 > help? Maybe not since it doesn't look like mml1991.el calls > epg-context-set-passphrase-callback, although mml2015.el does. Perhaps > mml1991.el should too? Well, actually it does help. The signing goes through mml2015.el and not through mml1991.el. Or, at least in my setup it does. -- Toon --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEqpqkV/lEuXKD1KF3MRQ6gtMrOJcFAlmSjHcACgkQMRQ6gtMr OJdGQhAApUYs1r4mWxhaybuI86AT0JEpglCOPeEJgF6iTqsAbWOEeb4gd5JuRnhr SAQxaJ2oV0AjxglnPOCoNMctGOrg+cNoB8acl+PfuQ06+NlBJRC7xBOUg1se/09T d7U/d+5zzH4fWKR4cgDT33/s+lj/WydhkCdBBYxvFx6QJ5D2JsPx0yiZLpMfqBz8 idZe+w/uHj5gtEKnvjL5e3A8E3RE2WBCchnpq/fKu7HwcmgxrDxEcJr/6UUrYwG+ O4fYWm4PJuqrOIpTQjrs0e2YF/F/Yg84XBSpSGWXrWUNIqqryivqQWifEPyFsYze 13pWPqGNhwB4O/T48UHz+Cx1NB11QeVYNIXmuj22KksGHvIEy9KbGr4wTGL9PGnD 4CfetYqaJ8KUQPB+M78YUgHZFyO9f/DP++8nrMeNBxvnbwwdmz2waY13maYXacgS 0b2pxRdwAJwVV8gf5P2qoihR9uMzWMj+hIk1DXycsfYPcfkN2n4aiVJztU6AfL5a qydr5NlZm0tNoE2t/Q2mtYBaIFF8J5yYBER74uXylSZiyt/lFQrNioJZlIeCWKbQ hrXJkSeISfca9AIO/7WU/jFV6TPJ5UYkpY1UlrjL432/wZYGMsizx2cPWb6dgyTI UeTwCVzpOxP32w1F5nRmA7OYU6nSgrwqg83VD1Ez9a66Uauw5l4= =RntP -----END PGP SIGNATURE----- --=-=-=-- From unknown Wed Jun 25 00:27:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26298: 26.0.50; Gnus fails to sign mail with PGP Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Aug 2017 15:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26298 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Toon Claes Cc: 26298@debbugs.gnu.org, Torsten Bronger Received: via spool by 26298-submit@debbugs.gnu.org id=B26298.150281059227447 (code B ref 26298); Tue, 15 Aug 2017 15:24:02 +0000 Received: (at 26298) by debbugs.gnu.org; 15 Aug 2017 15:23:12 +0000 Received: from localhost ([127.0.0.1]:38203 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhdgW-00078d-Jd for submit@debbugs.gnu.org; Tue, 15 Aug 2017 11:23:12 -0400 Received: from mail-oi0-f44.google.com ([209.85.218.44]:33307) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhdgV-00078Q-8W for 26298@debbugs.gnu.org; Tue, 15 Aug 2017 11:23:11 -0400 Received: by mail-oi0-f44.google.com with SMTP id f11so10266470oic.0 for <26298@debbugs.gnu.org>; Tue, 15 Aug 2017 08:23:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=1jajpzF8sJR/3zL2uK2TfJ20lU8HnNP4/K7R7O+oT6Y=; b=fm4yu32vm17qUxWAU/6lh8zFZ+qO8tHUNb0h3dNnRCQMeqZ+4T3IxUR0w3EQZhJ2/p C3SGBaNoZgNsTQjjNfHL7crDS49sj1X+MzJE7Ozu+HMYfklm8tDn/dKPNmRVhgwmZC8d M2OamZcM0rojO6UCJp6lgBbJKvik0HMhULsy5RUFKl7AYrSC8puR2d/A0ngIhw8DzPeb G/7Op3N8OKLmUT0RNxvqz8w5dTDZ3iryNuMjM0CsLWTx0Gjc770lNZiLgwzHHlKSbqwO p1juyPDDTnjpqqSgcPJt5zirl9rCG1NRtihOCnsXyJleKLFQOM6sdUm2Z5AaV2mVomoY tU3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=1jajpzF8sJR/3zL2uK2TfJ20lU8HnNP4/K7R7O+oT6Y=; b=Rkm4W40Bx3bB53r+I+6bsJDNCo2LbMZWR2N9OJaCnqJgHWO+huSC77b0uQIVWBxXPw MD+42WVYnKg2OynmE0BN2S+JD25jtKIHt6ek/wrw9dTJ0Odc8hejcXiYAwBjd13cKASH APOfAsqV5PMKzU/o2gKHSmI65iCRZsNXq3mLNL3JeFU9r6TzprDgqtLJfkknBwycu2Up xtcwIAcgCBXEz0Lhuxs8ZEtmG3X0VbE5BATddegOGywAMYxS1gAbn1xpE53tiSZDNCyv 2Bc7MtuSbHTNg2JIPlr3rDkVfvPtsbfFeMRE7fJcOrzGi29hRPGtszwcq1d1S/eYHrJt K/ow== X-Gm-Message-State: AHYfb5hYQ1LdwM1qh5u5CF6rXItGs2MzrubnF7P7hPg4EUxdwPokOYug /2RgTuh58vL2cwg8hGC0KL3aCbq1pg== X-Received: by 10.202.232.77 with SMTP id f74mr29968286oih.247.1502810585526; Tue, 15 Aug 2017 08:23:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.18.129 with HTTP; Tue, 15 Aug 2017 08:23:04 -0700 (PDT) In-Reply-To: References: <871sod1zmz.fsf@users.sourceforge.net> <87h92cp9dh.fsf@wilson.bronger.org> From: Noam Postavsky Date: Tue, 15 Aug 2017 11:23:04 -0400 X-Google-Sender-Auth: E6o0z5C5xVwkEMHTJ3hEhEJeN-s Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) On Tue, Aug 15, 2017 at 1:54 AM, Toon Claes wrote: > npostavs@users.sourceforge.net writes: > >> Does the patch at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23619#14 >> help? Maybe not since it doesn't look like mml1991.el calls >> epg-context-set-passphrase-callback, although mml2015.el does. Perhaps >> mml1991.el should too? > > Well, actually it does help. The signing goes through mml2015.el and not > through mml1991.el. Or, at least in my setup it does. Okay, I don't really know how it works, I assumed mml1991.el is used based on mml1991-sign showing up in the OP's backtrace. From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 19 04:47:51 2017 Received: (at control) by debbugs.gnu.org; 19 Sep 2017 08:47:51 +0000 Received: from localhost ([127.0.0.1]:47242 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duEC7-00008g-9P for submit@debbugs.gnu.org; Tue, 19 Sep 2017 04:47:51 -0400 Received: from mezzogiorno.tim-landscheidt.de ([78.47.87.37]:49255) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duEC6-00008Y-0F for control@debbugs.gnu.org; Tue, 19 Sep 2017 04:47:50 -0400 Received: from x4e369dc7.dyn.telefonica.de ([78.54.157.199]:34174 helo=passepartout.tim-landscheidt.de) by mezzogiorno.tim-landscheidt.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1duEC4-00055f-HY for control@debbugs.gnu.org; Tue, 19 Sep 2017 08:47:48 +0000 From: Tim Landscheidt To: control@debbugs.gnu.org Subject: none Organization: http://www.tim-landscheidt.de/ Date: Tue, 19 Sep 2017 08:47:43 +0000 Message-ID: <87ingfnkgg.fsf@passepartout.tim-landscheidt.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) reassign 28477 emacs,gnus reassign 28234 emacs,gnus reassign 27194 emacs,gnus reassign 26298 emacs,gnus reassign 25892 emacs,gnus reassign 25383 emacs,gnus From unknown Wed Jun 25 00:27:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26298: 26.0.50; Gnus fails to sign mail with PGP Resent-From: Toon Claes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sun, 28 Jan 2018 19:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26298 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Noam Postavsky Cc: 26298@debbugs.gnu.org, Torsten Bronger Received: via spool by 26298-submit@debbugs.gnu.org id=B26298.1517168381374 (code B ref 26298); Sun, 28 Jan 2018 19:40:01 +0000 Received: (at 26298) by debbugs.gnu.org; 28 Jan 2018 19:39:41 +0000 Received: from localhost ([127.0.0.1]:46566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1efsnl-00005x-59 for submit@debbugs.gnu.org; Sun, 28 Jan 2018 14:39:41 -0500 Received: from smtp.soverin.net ([94.130.159.233]:51948 helo=g02sm01.soverin.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1efsni-00005Z-DJ for 26298@debbugs.gnu.org; Sun, 28 Jan 2018 14:39:39 -0500 Received: from soverin.net by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=iotcl.com; s=default; t=1517168372; bh=I53ZHo2z+x4q21sahHbI/92iC6VTsoucKibgzHgC3XU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ovu1CrISdxtWcsR3SINONQk1/JT7KGlBcxZPrie+iI55wAgi5ZTKQNjYEpbYKogZ+ MT6pjcwTCZEJvfivasmlKFV7ccj8wOSjh6TjQhFZLSv28qp6V8w3yPG/xSruhXRL3A CLVBP0eJ6ljFl+T7NYTXdne3UuyMRpov0un7yJsk= From: Toon Claes In-Reply-To: (Noam Postavsky's message of "Tue, 15 Aug 2017 11:23:04 -0400") References: <871sod1zmz.fsf@users.sourceforge.net> <87h92cp9dh.fsf@wilson.bronger.org> Date: Sun, 28 Jan 2018 20:39:31 +0100 Message-ID: MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.99.2 at g02sm01 X-Virus-Status: Clean Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On Tue, Aug 15, 2017 at 1:54 AM, Toon Claes wrote: > npostavs@users.sourceforge.net writes: > >> Does the patch at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23619#14 >> help? > > Well, actually it does help. One thing though, with this patch, if I enter the incorrect passphrase, it gives me an error: Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil) mml2015-epg-sign((part (sign . "pgpmime") (tag-location . 803) (contents . ""))) mml2015-sign((part (sign . "pgpmime") (tag-location . 803) (contents . ""))) mml-pgpmime-sign-buffer((part (sign . "pgpmime") (tag-location . 803) (contents . ""))) mml-generate-mime-1((part (sign . "pgpmime") (tag-location . 803) (contents . ""))) mml-generate-mime() message-encode-message-body() message-send-mail(nil) message-send-via-mail(nil) message-send(nil) message-send-and-exit(nil) funcall-interactively(message-send-and-exit nil) call-interactively(message-send-and-exit nil nil) command-execute(message-send-and-exit) When I try again instantly, it does not ask me for the passphrase and just pops up the same error. When I wait for, I think, about 10 seconds to retry, it asks for a passphrase again. I'm not sure it's related to this bug, or is a separate bug. -- Toon From unknown Wed Jun 25 00:27:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26298: 26.0.50; Gnus fails to sign mail with PGP Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sun, 28 Jan 2018 21:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26298 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Toon Claes Cc: 26298@debbugs.gnu.org, Torsten Bronger Received: via spool by 26298-submit@debbugs.gnu.org id=B26298.151717459417336 (code B ref 26298); Sun, 28 Jan 2018 21:24:01 +0000 Received: (at 26298) by debbugs.gnu.org; 28 Jan 2018 21:23:14 +0000 Received: from localhost ([127.0.0.1]:46807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1efuPx-0004VY-OX for submit@debbugs.gnu.org; Sun, 28 Jan 2018 16:23:13 -0500 Received: from mail-it0-f48.google.com ([209.85.214.48]:55144) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1efuPv-0004VK-79 for 26298@debbugs.gnu.org; Sun, 28 Jan 2018 16:23:11 -0500 Received: by mail-it0-f48.google.com with SMTP id k131so6034881ith.4 for <26298@debbugs.gnu.org>; Sun, 28 Jan 2018 13:23:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=F3Ed0lb1rQY+lAdRANrf991qtOzfchicpXFT0JEtePQ=; b=I1xLB5rV2vvTIc2KYl3pv1j/UkyJ5UTl6fIkFQ+O007Wz/WUkWZSGrQt5SGs8Gf5+t opOp/hxXLfQ8DUkh7knQubJ0PtVPBMmw9BX9W0zZGDq2EIKlKhupLvwaTk3U37C5X4tR ShIsJa9qljPZhgnRfeTntb7jXOTJkamINEu4rmCt3SEfJ10Gu0hZMgQFc/xmbZFjROFA W7AE5shSjbrP+m3Hn8L6eB9+0nFJtr4UDJTaxW4ytzkWIOMkGjC7VmErlmhjnAFabxRc iec0bICcPMaU+KkMXG/tugc10vTTLHjZqD80tYJb3in7SDMchbRIRD8X+QXgS1JpGzV/ NnNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=F3Ed0lb1rQY+lAdRANrf991qtOzfchicpXFT0JEtePQ=; b=gaC4p3uFC4pzfBDnzzuRoxqA8HsygugCkHo4phWX1Cw4IO83dgAYPiEPSSFoo9xR/X 0xGRaRk7Dj10jsiLBOtW3L/CQpfbrQNl68AWL0bz931YohIKax6uG3SSeG08dGWjykVn jDrJ1RqSLd6XsIHD/+oYEzKFtubMOtMoij/+qsPlLn/NlB49c+S4w9hu28jzGa6vLrjz /yFqWV8VkoGOJ4j4qUbcYyPDeUqLsexmtR7jOJ4igkutl1/8mnE7bqiG8qWXrl6oly6R KdhsFd6tPHIHRzLFqLPBjxpbqs/2M1kezmfR9a93gxh4Av6kfkQZx/FUOrurbH1cmhWK mE2w== X-Gm-Message-State: AKwxyteEXHNNng0INag7GuCaRAU90q7sv851HDzMj3Ca203lgF9wDZjR aZ5HIltIlKcmikScxm2Dt2ZQWQ== X-Google-Smtp-Source: AH8x224zhmUxbH/RCsxYbiesqoicj6TO6q94WgLZjdCeGWvxRf+cWI00ygNjOmcraPUUFJLc9Tq0MQ== X-Received: by 10.36.74.200 with SMTP id k191mr26258909itb.69.1517174585625; Sun, 28 Jan 2018 13:23:05 -0800 (PST) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id m100sm3178348iod.52.2018.01.28.13.23.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 28 Jan 2018 13:23:04 -0800 (PST) From: Noam Postavsky References: <871sod1zmz.fsf@users.sourceforge.net> <87h92cp9dh.fsf@wilson.bronger.org> Date: Sun, 28 Jan 2018 16:23:02 -0500 In-Reply-To: (Toon Claes's message of "Sun, 28 Jan 2018 20:39:31 +0100") Message-ID: <87vaflk79l.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) Toon Claes writes: > On Tue, Aug 15, 2017 at 1:54 AM, Toon Claes wrote: >> npostavs@users.sourceforge.net writes: >> >>> Does the patch at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23619#14 >>> help? >> >> Well, actually it does help. > > One thing though, with this patch, if I enter the incorrect passphrase, > it gives me an error: > > Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil) > mml2015-epg-sign((part (sign . "pgpmime") (tag-location . 803) (contents . ""))) > mml2015-sign((part (sign . "pgpmime") (tag-location . 803) (contents . ""))) I can't reproduce the original bug, but this I can, although with mml1991 (not clear to me how this get's chosen). I think it's just a matter of making the error a bit clearer, e.g.: --- i/lisp/gnus/mml1991.el +++ w/lisp/gnus/mml1991.el @@ -277,6 +277,8 @@ mml1991-epg-sign (mm-decode-content-transfer-encoding cte))) (let* ((pair (mml-secure-epg-sign 'OpenPGP 'clear)) (signature (car pair))) + (unless (stringp signature) + (error "Signature failed")) (delete-region (point-min) (point-max)) (insert (with-temp-buffer diff --git i/lisp/gnus/mml2015.el w/lisp/gnus/mml2015.el index b220a96098..6baae80309 100644 --- i/lisp/gnus/mml2015.el +++ w/lisp/gnus/mml2015.el @@ -958,6 +958,8 @@ mml2015-epg-sign (let* ((pair (mml-secure-epg-sign 'OpenPGP t)) (signature (car pair)) (micalg (cdr pair))) + (unless (stringp signature) + (error "Signature failed")) (goto-char (point-min)) (insert (format "Content-Type: multipart/signed; boundary=\"%s\";\n" boundary)) > When I try again instantly, it does not ask me for the passphrase and > just pops up the same error. When I wait for, I think, about 10 seconds > to retry, it asks for a passphrase again. Hmm, I can't reproduce this one, I guess it's related to gpg version (I have 2.1.18) and how the caching works. From unknown Wed Jun 25 00:27:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26298: 26.0.50; Gnus fails to sign mail with PGP Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Wed, 11 Apr 2018 22:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26298 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Noam Postavsky Cc: Toon Claes , 26298@debbugs.gnu.org, Torsten Bronger Received: via spool by 26298-submit@debbugs.gnu.org id=B26298.152348439930821 (code B ref 26298); Wed, 11 Apr 2018 22:07:01 +0000 Received: (at 26298) by debbugs.gnu.org; 11 Apr 2018 22:06:39 +0000 Received: from localhost ([127.0.0.1]:46699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6Nt1-000813-La for submit@debbugs.gnu.org; Wed, 11 Apr 2018 18:06:39 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:48623) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6Nt0-00080w-Hz for 26298@debbugs.gnu.org; Wed, 11 Apr 2018 18:06:38 -0400 Received: from 46.67.12.60.tmi.telenormobil.no ([46.67.12.60] helo=corrigan) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1f6Nsp-0002fR-Hi; Thu, 12 Apr 2018 00:06:29 +0200 Received: from larsi by corrigan with local (Exim 4.89) (envelope-from ) id 1f6Nsj-0002lA-Mq; Thu, 12 Apr 2018 00:06:21 +0200 From: Lars Ingebrigtsen References: <871sod1zmz.fsf@users.sourceforge.net> <87h92cp9dh.fsf@wilson.bronger.org> <87vaflk79l.fsf@users.sourceforge.net> Date: Thu, 12 Apr 2018 00:06:21 +0200 In-Reply-To: <87vaflk79l.fsf@users.sourceforge.net> (Noam Postavsky's message of "Sun, 28 Jan 2018 16:23:02 -0500") Message-ID: <871sflwg82.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Noam Postavsky writes: > I can't reproduce the original bug, but this I can, although with > mml1991 (not clear to me how this get's chosen). I think it's just a > matter of making the error a bit clearer, e.g.: > > --- i/lisp/gnus/mml1991.el > +++ w/lisp/gnus/mml1991.el > @@ -277,6 +277,8 @@ mml1991-epg-sign > (mm-decode-content-transfer-encoding cte))) > (let* ((pair (mml-secure-epg-sign 'OpenPGP 'clear)) > (signature (car pair))) > + (unless (stringp signature) > + (error "Signature failed")) > (delete-region (point-min) (point-max)) > (insert > (with-temp-buffer I've applied this patch to Emacs 27.1. I don't do any signing, so the rest of this thread was greek to me. :-) Were the other issues worked out? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Wed Jun 25 00:27:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26298: 26.0.50; Gnus fails to sign mail with PGP Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Thu, 12 Apr 2018 07:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26298 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: Toon Claes , 26298@debbugs.gnu.org, Torsten Bronger Received: via spool by 26298-submit@debbugs.gnu.org id=B26298.15235179424649 (code B ref 26298); Thu, 12 Apr 2018 07:26:01 +0000 Received: (at 26298) by debbugs.gnu.org; 12 Apr 2018 07:25:42 +0000 Received: from localhost ([127.0.0.1]:47000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6Wby-0001Cs-BP for submit@debbugs.gnu.org; Thu, 12 Apr 2018 03:25:41 -0400 Received: from mail-it0-f41.google.com ([209.85.214.41]:36458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6Wbs-0001Cc-Uk for 26298@debbugs.gnu.org; Thu, 12 Apr 2018 03:25:36 -0400 Received: by mail-it0-f41.google.com with SMTP id 15-v6so5849679itl.1 for <26298@debbugs.gnu.org>; Thu, 12 Apr 2018 00:25:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=7sb9k1LloApMd3e5vYJ2KpkOXRoTGSsCKN2JTcu36x4=; b=Vrf3cgW52e71EpGpajLtZW10S/ilFUAdhJJPODAJ1gK54fB+bSrc+UNTs0zk9JLcOj vvgWVRsN+gqvuZ4tBSKiBbTsyWEY9t8o3mGqSETEM+TW68hRbedeTKXM2s6/I2xFN9SZ uHF7vcQ9DNiREYoUuzi2+lMBns009/FiYVtYqt5Vkm+vMKgoonAp7Ji0rgCtm71R1Seb gCLjoNzP+ZfsEggPIKGS2/NgAq6i12XP4V4nE/1Ic2fVE7LF8KGAHyWjRcuAoNGFNnKv 50GCIj6DL+5yj0YhkSu8KfkzWRxMcYAO6EsghAOn86wLEQaWsxZ0KHlDEBejmPX9gA+B HPCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=7sb9k1LloApMd3e5vYJ2KpkOXRoTGSsCKN2JTcu36x4=; b=PFV3n7NOT4MYZnsZCY3V+4MDV34QOnNV7Zej0zuwB3asr/jd1vvslEAAIoXxoi215M 7xxHdmaNpiqoNRmXdnl4Wc+FyN2R6J8qorPhUlsPTY8PE5aknK3cpM3b33GfXzp+c+Ur PiDZ2jePNBP8UiRw8cIqW7xIXDyeO40glDUHlJuflb/1Ltol0iqFiA4OkbeHsWmrFIVL WtsK9GwlBNcko2Fwt3kDXWcVxFrpozMMJqfYXqwytQAnfpQuiDH2zwWJiTS58KAFzwk9 2o+CN4bHuSx+ycrLyXAJXnAiTG/ShC69b6WnvQjNl3Bdvv/UY9g8a7nBPZ60UVfogXWW KJlg== X-Gm-Message-State: ALQs6tD5slyQGxIWW25w0jMHbnx4MBUz6OuGmht2YhOXwbrhVhKlpvIx tGaz/FgH+GtUKySTZotfUZg= X-Google-Smtp-Source: AIpwx49lgqavZ62Z7zkOgsVYZPwlX10fxCC1p5/2AUh7gPj5sl7FLY/K4IIaXr5+DbyNRbesIvSfLg== X-Received: by 2002:a24:1fc7:: with SMTP id d190-v6mr7228904itd.57.1523517927416; Thu, 12 Apr 2018 00:25:27 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id p197-v6sm781051itp.4.2018.04.12.00.25.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Apr 2018 00:25:26 -0700 (PDT) From: Noam Postavsky References: <871sod1zmz.fsf@users.sourceforge.net> <87h92cp9dh.fsf@wilson.bronger.org> <87vaflk79l.fsf@users.sourceforge.net> <871sflwg82.fsf@mouse.gnus.org> Date: Thu, 12 Apr 2018 03:25:24 -0400 In-Reply-To: <871sflwg82.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Thu, 12 Apr 2018 00:06:21 +0200") Message-ID: <87r2nklwd7.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > I don't do any signing, so the rest of this thread was greek to me. :-) > Were the other issues worked out? I haven't applied the loopback patch, because I'm not entirely sure if it's the right thing (see also Bug#30363). But maybe the best way to find out is to push to master and see if it causes anyone problems... https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30363#14 From unknown Wed Jun 25 00:27:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26298: 26.0.50; Gnus fails to sign mail with PGP Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Thu, 12 Apr 2018 11:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26298 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Noam Postavsky Cc: Toon Claes , 26298@debbugs.gnu.org, Torsten Bronger Received: via spool by 26298-submit@debbugs.gnu.org id=B26298.15235330683514 (code B ref 26298); Thu, 12 Apr 2018 11:38:01 +0000 Received: (at 26298) by debbugs.gnu.org; 12 Apr 2018 11:37:48 +0000 Received: from localhost ([127.0.0.1]:47149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6aXv-0000uY-GU for submit@debbugs.gnu.org; Thu, 12 Apr 2018 07:37:47 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:52125) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6aXq-0000uN-HA for 26298@debbugs.gnu.org; Thu, 12 Apr 2018 07:37:42 -0400 Received: from 46.67.12.60.tmi.telenormobil.no ([46.67.12.60] helo=corrigan) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1f6aXl-0007fc-HP; Thu, 12 Apr 2018 13:37:37 +0200 Received: from larsi by corrigan with local (Exim 4.89) (envelope-from ) id 1f6aXY-0003m5-L7; Thu, 12 Apr 2018 13:37:20 +0200 From: Lars Ingebrigtsen References: <871sod1zmz.fsf@users.sourceforge.net> <87h92cp9dh.fsf@wilson.bronger.org> <87vaflk79l.fsf@users.sourceforge.net> <871sflwg82.fsf@mouse.gnus.org> <87r2nklwd7.fsf@gmail.com> Date: Thu, 12 Apr 2018 13:37:15 +0200 In-Reply-To: <87r2nklwd7.fsf@gmail.com> (Noam Postavsky's message of "Thu, 12 Apr 2018 03:25:24 -0400") Message-ID: <87muy8sljo.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Noam Postavsky writes: > Lars Ingebrigtsen writes: > >> I don't do any signing, so the rest of this thread was greek to me. :-) >> Were the other issues worked out? > > I haven't applied the loopback patch, because I'm not entirely sure if > it's the right thing (see also Bug#30363). But maybe the best way to > find out is to push to master and see if it causes anyone problems... > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30363#14 Should these two bug reports be merged? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Wed Jun 25 00:27:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26298: 26.0.50; Gnus fails to sign mail with PGP Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Thu, 12 Apr 2018 12:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26298 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: Toon Claes , 26298@debbugs.gnu.org, Torsten Bronger Received: via spool by 26298-submit@debbugs.gnu.org id=B26298.152353713411962 (code B ref 26298); Thu, 12 Apr 2018 12:46:01 +0000 Received: (at 26298) by debbugs.gnu.org; 12 Apr 2018 12:45:34 +0000 Received: from localhost ([127.0.0.1]:47199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6bbW-00032S-Ka for submit@debbugs.gnu.org; Thu, 12 Apr 2018 08:45:34 -0400 Received: from mail-it0-f51.google.com ([209.85.214.51]:34782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6bbQ-0002qr-RN for 26298@debbugs.gnu.org; Thu, 12 Apr 2018 08:45:28 -0400 Received: by mail-it0-f51.google.com with SMTP id t192-v6so2312113itc.1 for <26298@debbugs.gnu.org>; Thu, 12 Apr 2018 05:45:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=N8dRGO87Yl9/irNJw0rRJCcegyAIz4gb0V/2TZulydY=; b=ltV204BE8uTnI8aWIONKdLTKJ+128nq5LgHInHi/D8y7O43SPosJ4zp777V4dqQIqb vRGaEiaEmk2HK470zx++uk5rRbNPorhI8RPwJGhxXQKdlTKNT9NADXUEC0wRqChjbtjv uFBDeP1sXApFFq5SvbPLDFWMv6rBVFA+Yp0Tlz1K2MRxyVHEC8aXRNFu1nQ/mBrNrhY/ ja9rEHPry1uyqxxcqKq2LxmG6GIXazjHAqc2GAYG/9zmOT3fn5iKIZfgHSOmYg9jqoXz qgLlKoVhiznMejd/z2gUxWjD/zHTsR4dOyeH5j2t+AoN/8ljXMhZt1xB6UCkLlVtWuPX 9gFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=N8dRGO87Yl9/irNJw0rRJCcegyAIz4gb0V/2TZulydY=; b=G+4syC7GtfmWQI5nUF1HHobcvDzdVRlvQLitXjkEdoTjn0vYLczYq0PZPgGTzWMWsy tSZjZKxtk23AsagaN9kr/L8n0PtWDHATlorsW43qu7LdgB8/hQ7+m6TPQY+Txqo/Mt0L WRhIcf7uXT1IkfaMk89AO238RD67C3Esn4zhzAt8j8ERIHZE/44ZnW1483RHncxTGINZ SN58s6BV0H+diG9j6Qzyv6XOBBwO9nvvwelX2ypwe1do+enFCjKNc7w8JCeHpVFY5Ris HVvNEWOyEoe4SuNrBT4W37ue+CcKofZ03781CUMRTXLS2lqnF5claYcfmtBIFwQaAxAq SxDA== X-Gm-Message-State: ALQs6tCYgqxZSeFGYO/Z/BNugQwX19/iyT3VVUinIjyd7+Ex5ME4EK1y N8//Nr3Mns8EOkOOYxmJWWA= X-Google-Smtp-Source: AIpwx4+yTkxe0CFHInaJqiRW9kfaVjMYmm9IdAqFlXnQEJ4ovFeGdYGnj98utjDWCyirS5j97Kf5OQ== X-Received: by 2002:a24:194d:: with SMTP id b74-v6mr752943itb.58.1523537119404; Thu, 12 Apr 2018 05:45:19 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id z7sm1557131iob.9.2018.04.12.05.45.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Apr 2018 05:45:18 -0700 (PDT) From: Noam Postavsky References: <871sod1zmz.fsf@users.sourceforge.net> <87h92cp9dh.fsf@wilson.bronger.org> <87vaflk79l.fsf@users.sourceforge.net> <871sflwg82.fsf@mouse.gnus.org> <87r2nklwd7.fsf@gmail.com> <87muy8sljo.fsf@mouse.gnus.org> Date: Thu, 12 Apr 2018 08:45:17 -0400 In-Reply-To: <87muy8sljo.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Thu, 12 Apr 2018 13:37:15 +0200") Message-ID: <87k1tclhk2.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > Noam Postavsky writes: > >> Lars Ingebrigtsen writes: >> >>> I don't do any signing, so the rest of this thread was greek to me. :-) >>> Were the other issues worked out? >> >> I haven't applied the loopback patch, because I'm not entirely sure if >> it's the right thing (see also Bug#30363). But maybe the best way to >> find out is to push to master and see if it causes anyone problems... >> >> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30363#14 > > Should these two bug reports be merged? I don't think so, the other one is mainly about epa-decrypt-file, and just incidentally mentions mml at the end. From unknown Wed Jun 25 00:27:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26298: 26.0.50; Gnus fails to sign mail with PGP In-Reply-To: <87h92cp9dh.fsf@wilson.bronger.org> Resent-From: Toon Claes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sat, 14 Apr 2018 06:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26298 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: 26298@debbugs.gnu.org, Torsten Bronger , Noam Postavsky Received: via spool by 26298-submit@debbugs.gnu.org id=B26298.152368875417532 (code B ref 26298); Sat, 14 Apr 2018 06:53:02 +0000 Received: (at 26298) by debbugs.gnu.org; 14 Apr 2018 06:52:34 +0000 Received: from localhost ([127.0.0.1]:51296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7F30-0004Yc-Sq for submit@debbugs.gnu.org; Sat, 14 Apr 2018 02:52:34 -0400 Received: from smtp.soverin.net ([94.130.159.233]:60608 helo=g02sm01.soverin.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7F2v-0004YF-K1 for 26298@debbugs.gnu.org; Sat, 14 Apr 2018 02:52:29 -0400 Received: from soverin.net by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=iotcl.com; s=default; t=1523688739; bh=ZOH+x4Q+5PwBpAYUUyYCJ4RD45FRjpozWwgp+P/eEqE=; h=From:To:Cc:Subject:References:Date:From; b=u+hETMCnSlRTIFZjCCGYArGO/byL2T7UDdsBQkTCoBe1lQ/cbrZyqGWGRQoeFu14H lTl9lxtCwNkoysckipD31QboHiBbqRSKu6J6jICXyVWPskD6pv5eThvMad5O2PVQoo yPKzQLa3IuPk4wqP3tB4WVcjEp1titd6bOI65zD4= From: Toon Claes References: <871sod1zmz.fsf@users.sourceforge.net> <87h92cp9dh.fsf@wilson.bronger.org> <87vaflk79l.fsf@users.sourceforge.net> <871sflwg82.fsf@mouse.gnus.org> Date: Sat, 14 Apr 2018 08:52:18 +0200 Message-ID: MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.99.2 at g02sm01 X-Virus-Status: Clean Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Lars Ingebrigtsen writes: > Noam Postavsky writes: > >> --- i/lisp/gnus/mml1991.el >> +++ w/lisp/gnus/mml1991.el >> @@ -277,6 +277,8 @@ mml1991-epg-sign >> (mm-decode-content-transfer-encoding cte))) >> (let* ((pair (mml-secure-epg-sign 'OpenPGP 'clear)) >> (signature (car pair))) >> + (unless (stringp signature) >> + (error "Signature failed")) >> (delete-region (point-min) (point-max)) >> (insert >> (with-temp-buffer > > I've applied this patch to Emacs 27.1. I've built 20c6a516ec (which contains ef2059e877), and now I'm getting "Signature failed" whenever I'm trying to sign an email. Independent if my passphrase was correct or not. As a matter of fact, it no longer giving me the possibility to fill in my passphrase in the minibuffer. So I'm getting a proper error now, but my original problem is not resolved. TBH I'm getting a bit lost in the maze of bugs: - #26298: (this one) - #30363: epa-decrypt-file not using epa-pinentry-mode - #23619: Some epg tests fail Anyway, the patch provided in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23619#14 does solve my problem. But as Noam mentioned, I am not sure "it's the right thing". -- Toon --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEqpqkV/lEuXKD1KF3MRQ6gtMrOJcFAlrRpSIACgkQMRQ6gtMr OJdMXBAAmP9nzrBqeplY38J/2iurgQIE9abeyUFXcTTqvI38SFtm0b1tklZUgAY8 hHoTPYAW1xnKArqI3+GMYZrBE+i32OuiNJ896e5BCl6tF/l5BdfRsaeUSfjt/2Tn 8jGplD8Suv0AWc3RVNPSnFzVwFoXY1M2sNjCUCc3h6AQHdjg6nXVetYa7wegse8F emkAd6jsZc4yqV/E3fM27TQ5WRWX5gq/o6Aj89Y+cHUD9yGWHEJiciv6D8tga8xG t3eaCfb9i3f7nYGha9zzbpyIFpLWtup8Eg7diOx+h4wvGYFXMsSOFiIUMrOgfIpV kBYsa9AtqtZSU5VnhAcx29+KcmzsScqAQ2afb3e0Aei5nLAn7VMckyfH2+FaxJSX mwsRXG9RbBQgyoLL1WYtcbskemm2xRBHTOJMv1yBxz7TmoAcTOo5hGsUiYlZDa2R xRpkVvUuhDflZLVY30IvKN8IRqqUCt38bDq+waMsCKbDfULDaLVFNNsKiHPY9mEj BtaVWy7Ag068WemLDiQ0sPtrO4DdegBJo7W0bqhBoxsp3dMTEt+TyXpnzcVILcwd 37cN6GtSvybH63vrTgRthnzM7g1QhwSpMMJ2WIizQKVziJmRW4qtv16yLoqcETpa rsPZrI//MTFBHFceZKLFqX/jBfW02p9hMc3rlbpHOefDzAUg838= =OejA -----END PGP SIGNATURE----- --=-=-=-- From unknown Wed Jun 25 00:27:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26298: 26.0.50; Gnus fails to sign mail with PGP Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sat, 14 Apr 2018 13:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26298 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Toon Claes Cc: 26298@debbugs.gnu.org, Torsten Bronger , Noam Postavsky Received: via spool by 26298-submit@debbugs.gnu.org id=B26298.15237115721834 (code B ref 26298); Sat, 14 Apr 2018 13:13:02 +0000 Received: (at 26298) by debbugs.gnu.org; 14 Apr 2018 13:12:52 +0000 Received: from localhost ([127.0.0.1]:51398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7Kz4-0000TU-Tm for submit@debbugs.gnu.org; Sat, 14 Apr 2018 09:12:51 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:53274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7Kz3-0000TN-Lx for 26298@debbugs.gnu.org; Sat, 14 Apr 2018 09:12:49 -0400 Received: from 46.67.12.60.tmi.telenormobil.no ([46.67.12.60] helo=corrigan) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1f7Kyq-0000N2-Og; Sat, 14 Apr 2018 15:12:38 +0200 Received: from larsi by corrigan with local (Exim 4.89) (envelope-from ) id 1f7Kyk-0004he-Ta; Sat, 14 Apr 2018 15:12:30 +0200 From: Lars Ingebrigtsen References: <871sod1zmz.fsf@users.sourceforge.net> <87h92cp9dh.fsf@wilson.bronger.org> <87vaflk79l.fsf@users.sourceforge.net> <871sflwg82.fsf@mouse.gnus.org> Date: Sat, 14 Apr 2018 15:12:30 +0200 In-Reply-To: (Toon Claes's message of "Sat, 14 Apr 2018 08:52:18 +0200") Message-ID: <87h8oej5j5.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Toon Claes writes: > I've built 20c6a516ec (which contains ef2059e877), and now I'm getting > "Signature failed" whenever I'm trying to sign an email. Independent if > my passphrase was correct or not. As a matter of fact, it no longer > giving me the possibility to fill in my passphrase in the minibuffer. OK, I'll revert that patch. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Wed Jun 25 00:27:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26298: 26.0.50; Gnus fails to sign mail with PGP Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sat, 14 Apr 2018 13:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26298 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Toon Claes Cc: 26298@debbugs.gnu.org, Torsten Bronger , Noam Postavsky Received: via spool by 26298-submit@debbugs.gnu.org id=B26298.15237117392098 (code B ref 26298); Sat, 14 Apr 2018 13:16:02 +0000 Received: (at 26298) by debbugs.gnu.org; 14 Apr 2018 13:15:39 +0000 Received: from localhost ([127.0.0.1]:51406 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7L1n-0000Xl-2B for submit@debbugs.gnu.org; Sat, 14 Apr 2018 09:15:39 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:53333) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7L1l-0000Xe-EW for 26298@debbugs.gnu.org; Sat, 14 Apr 2018 09:15:37 -0400 Received: from 46.67.12.60.tmi.telenormobil.no ([46.67.12.60] helo=corrigan) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1f7L1h-00008F-PF; Sat, 14 Apr 2018 15:15:35 +0200 Received: from larsi by corrigan with local (Exim 4.89) (envelope-from ) id 1f7L1c-0004lK-99; Sat, 14 Apr 2018 15:15:28 +0200 From: Lars Ingebrigtsen References: <871sod1zmz.fsf@users.sourceforge.net> <87h92cp9dh.fsf@wilson.bronger.org> <87vaflk79l.fsf@users.sourceforge.net> <871sflwg82.fsf@mouse.gnus.org> Date: Sat, 14 Apr 2018 15:15:27 +0200 In-Reply-To: (Toon Claes's message of "Sat, 14 Apr 2018 08:52:18 +0200") Message-ID: <87d0z2j5e8.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Toon Claes writes: > So I'm getting a proper error now, but my original problem is not > resolved. > > TBH I'm getting a bit lost in the maze of bugs: > > - #26298: (this one) > - #30363: epa-decrypt-file not using epa-pinentry-mode > - #23619: Some epg tests fail Me too. :-) > Anyway, the patch provided in > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23619#14 does solve my > problem. But as Noam mentioned, I am not sure "it's the right thing". Well, I don't use signing at all, so I shouldn't really be poking my head in here, and I'll leave applying the patches to somebody who knows what they're doing. :-) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Wed Jun 25 00:27:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26298: 26.0.50; Gnus fails to sign mail with PGP Resent-From: Toon Claes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sat, 14 Apr 2018 13:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26298 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: 26298@debbugs.gnu.org, Torsten Bronger , Noam Postavsky Received: via spool by 26298-submit@debbugs.gnu.org id=B26298.15237130303980 (code B ref 26298); Sat, 14 Apr 2018 13:38:01 +0000 Received: (at 26298) by debbugs.gnu.org; 14 Apr 2018 13:37:10 +0000 Received: from localhost ([127.0.0.1]:51419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7LMY-000124-G6 for submit@debbugs.gnu.org; Sat, 14 Apr 2018 09:37:10 -0400 Received: from smtp.soverin.net ([94.130.159.233]:35436 helo=g02sm01.soverin.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7LMS-00011V-4L for 26298@debbugs.gnu.org; Sat, 14 Apr 2018 09:37:04 -0400 Received: from soverin.net by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=iotcl.com; s=default; t=1523713013; bh=j73ibccCmPnEER3PtJf/cs+nxNxp7Y/d3zqZOfzP1L4=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=AvXviEpUId/j5qQCEv/Yq2IIUFjWMlBELbRJhS6jWldIzm7RNo1ze2nyPTQ8ujs4u WFNK0VHJXVf+49FYnG8USysQs5U8kuC6WqrVqQ87e8Ng3zPdlAp2Akt7H6awQSFTQT WEbaD/n0kmjJhq30mcC3cWVxfboeDl01jj3NG/R8= Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) From: Toon Claes In-Reply-To: <87h8oej5j5.fsf@mouse.gnus.org> Date: Sat, 14 Apr 2018 15:36:52 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <1F662FEC-2CAF-4CA0-B6FB-4F5AF2093E03@iotcl.com> References: <871sod1zmz.fsf@users.sourceforge.net> <87h92cp9dh.fsf@wilson.bronger.org> <87vaflk79l.fsf@users.sourceforge.net> <871sflwg82.fsf@mouse.gnus.org> <87h8oej5j5.fsf@mouse.gnus.org> X-Virus-Scanned: clamav-milter 0.99.2 at g02sm01 X-Virus-Status: Clean X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > On 14 Apr 2018, at 15:12, Lars Ingebrigtsen wrote: >=20 > OK, I'll revert that patch. Oh sorry, I don=E2=80=99t think that=E2=80=99s needed. I wasn=E2=80=99t real= ly clear. But without the patch I couldn=E2=80=99t either fill in the passph= rase. The only difference, now I=E2=80=99m getting a nice error instead of a= backtrace.=20 =E2=80=94 Toon From unknown Wed Jun 25 00:27:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26298: 26.0.50; Gnus fails to sign mail with PGP Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sat, 14 Apr 2018 13:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26298 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Toon Claes Cc: 26298@debbugs.gnu.org, Torsten Bronger , Noam Postavsky Received: via spool by 26298-submit@debbugs.gnu.org id=B26298.152371411913851 (code B ref 26298); Sat, 14 Apr 2018 13:56:02 +0000 Received: (at 26298) by debbugs.gnu.org; 14 Apr 2018 13:55:19 +0000 Received: from localhost ([127.0.0.1]:51875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7Le7-0003ZK-Rl for submit@debbugs.gnu.org; Sat, 14 Apr 2018 09:55:19 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:53592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7Le1-0003VQ-KM for 26298@debbugs.gnu.org; Sat, 14 Apr 2018 09:55:14 -0400 Received: from 46.67.12.60.tmi.telenormobil.no ([46.67.12.60] helo=corrigan) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1f7Lds-00084i-4g; Sat, 14 Apr 2018 15:55:03 +0200 Received: from larsi by corrigan with local (Exim 4.89) (envelope-from ) id 1f7Ldm-0004zy-0C; Sat, 14 Apr 2018 15:54:54 +0200 From: Lars Ingebrigtsen References: <871sod1zmz.fsf@users.sourceforge.net> <87h92cp9dh.fsf@wilson.bronger.org> <87vaflk79l.fsf@users.sourceforge.net> <871sflwg82.fsf@mouse.gnus.org> <87h8oej5j5.fsf@mouse.gnus.org> <1F662FEC-2CAF-4CA0-B6FB-4F5AF2093E03@iotcl.com> Date: Sat, 14 Apr 2018 15:54:53 +0200 In-Reply-To: <1F662FEC-2CAF-4CA0-B6FB-4F5AF2093E03@iotcl.com> (Toon Claes's message of "Sat, 14 Apr 2018 15:36:52 +0200") Message-ID: <87muy5j3ki.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Toon Claes writes: >> On 14 Apr 2018, at 15:12, Lars Ingebrigtsen wrote: >>=20 >> OK, I'll revert that patch. > > Oh sorry, I don=E2=80=99t think that=E2=80=99s needed. I wasn=E2=80=99t r= eally clear. But > without the patch I couldn=E2=80=99t either fill in the passphrase. The o= nly > difference, now I=E2=80=99m getting a nice error instead of a backtrace. Oh, I misunderstood. I thought you said that you got that error message even when you signed successfully. I guess I'll un-revert the reversion. :-) --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Wed Jun 25 00:27:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26298: 26.0.50; Gnus fails to sign mail with PGP Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sun, 29 Apr 2018 14:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26298 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Toon Claes Cc: Joseph Mingrone , 26298@debbugs.gnu.org, Torsten Bronger Received: via spool by 26298-submit@debbugs.gnu.org id=B26298.152501272226263 (code B ref 26298); Sun, 29 Apr 2018 14:39:02 +0000 Received: (at 26298) by debbugs.gnu.org; 29 Apr 2018 14:38:42 +0000 Received: from localhost ([127.0.0.1]:43001 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fCnTO-0006pU-BI for submit@debbugs.gnu.org; Sun, 29 Apr 2018 10:38:42 -0400 Received: from mail-io0-f174.google.com ([209.85.223.174]:45231) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fCnTN-0006pF-3s for 26298@debbugs.gnu.org; Sun, 29 Apr 2018 10:38:41 -0400 Received: by mail-io0-f174.google.com with SMTP id c9-v6so1215823iob.12 for <26298@debbugs.gnu.org>; Sun, 29 Apr 2018 07:38:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=xs8/1l89nrvvLH8xFxmfjq0jRnMeCFHyhYXExrE0a18=; b=Qsw5RnMO/7GtxAi/H8MMcpB8P56FCXi7kZbAugX6SuitstoZLSsEA+0gY9OD+NAPXm OHpvciV+T/ePW4H2Ozie22jv2y5QTgg7cpY0yF9WnjRMdcPFGYnh9r+VKcR0aMXZTyn1 qZYSUS5e1AFNQszK30WarUMFD4gTYsVY0FDb3EJbdLZpzYZJk78VzUsCp0FriYiN94F4 qGe41XC629CI1D0XIgMoqQ6wUG92iEL0N16zFb6Yl1H/YvFIJXLgrb8vzXBtNv8vdSgl oqTYF6Vv/AoFt+QpveRs7iQE/GHJWEYr9KT7IzsF5aeHgaaa1HgdDdRhpt9bV4F3PDgN dbKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=xs8/1l89nrvvLH8xFxmfjq0jRnMeCFHyhYXExrE0a18=; b=g1ke/mU2eKaurJYzqPni8gvsgGn7mSYNUejl4rHDcIqCvE2egG9DVutRgvTPmUFYQn 1aiDL6+0EoUrS0XB0NRuJ9xnSUT320kiCiFTU3PHmsFz2LslCMOclhVDV32R+S6L5mag YH2L/otUhd8cL4TJXCGW61WGwHv7JyZ/KYuz/VawjJ2kRNEO43r5CJ+lPvw8P/wzmv6B dj6QJ1ERUD6rebLeQwsAp/XTa5AMVbO57FRKEGske20nfPbfpkFh0W9chIR+lExIG7Gx LISjjhTi+TXhyo0vNwmvJ8nX/DCksyw6ydLnhUjJsDX7IeKM2TqI6UDqYm5rq0fhSHYY qJTg== X-Gm-Message-State: ALQs6tBwWgTKXpLFI9l5pxTH5+oFfExa6SoovbclWx0yUXVenjw2wN02 51YI2LmaovgaaNnWLLVpqENOOg== X-Google-Smtp-Source: AB8JxZp6DFig2q6CYY0b6JuDJVhogR+hxZzYZtr9a8/hUs9wZ5Sl8/EXsIqvHCA8LI3E7lzZo+BXQQ== X-Received: by 2002:a6b:bc02:: with SMTP id m2-v6mr9456085iof.2.1525012715476; Sun, 29 Apr 2018 07:38:35 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id n142-v6sm2549371itn.38.2018.04.29.07.38.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 29 Apr 2018 07:38:34 -0700 (PDT) From: Noam Postavsky References: <87h92cp9dh.fsf@wilson.bronger.org> Date: Sun, 29 Apr 2018 10:38:32 -0400 In-Reply-To: (Toon Claes's message of "Mon, 14 Aug 2017 23:19:26 +0200 (CEST)") Message-ID: <87k1sqoz6f.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Toon Claes writes: > If I add the following line to `mml-secure-epg-sign', I can successfully > sign my email: > > #+begin_src emacs-lisp :tangle yes > (setf (epg-context-pinentry-mode context) 'loopback) > #+end_src > > Now I also understand why `epa-sign-file' works, I have set > `(setq epa-pinentry-mode 'loopback)' in my init.el. > > But, I could use some advice on building a proper fix that would work > for everyone. We could do something similar like as epa.el does, and add > yet another defcustom, but doesn't feel very DRY. > So I hope someone can chime in to give some advice. So perhaps the best solution is simply rename epa-pinentry-mode to epg-pinentry-mode, and use it is as the default epg-context-pinentry-mode value (see attached). --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=v1-0001-Move-epa-pinentry-mode-to-epg-config-Bug-26298.patch Content-Description: patch >From 937c2cf8a751bbc7581a0ca187f4cac023e607b3 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Sun, 29 Apr 2018 10:32:03 -0400 Subject: [PATCH v1] Move epa-pinentry-mode to epg-config (Bug#26298) * lisp/epa.el (epa-pinentry-mode): Make into obsolete alias for... * lisp/epg-config.el (epg-pinentry-mode): ...this new user option. * lisp/epg.el (epg-context): Use it as the default value for pinentry-mode. --- lisp/epa.el | 23 ++--------------------- lisp/epg-config.el | 22 ++++++++++++++++++++++ lisp/epg.el | 2 +- 3 files changed, 25 insertions(+), 22 deletions(-) diff --git a/lisp/epa.el b/lisp/epa.el index 5c237bca9b..e03933af30 100644 --- a/lisp/epa.el +++ b/lisp/epa.el @@ -56,27 +56,8 @@ epa-info-window-height :type 'integer :group 'epa) -;; In the doc string below, we say "symbol `error'" to avoid producing -;; a hyperlink for `error' the function. -(defcustom epa-pinentry-mode nil - "The pinentry mode. - -GnuPG 2.1 or later has an option to control the behavior of -Pinentry invocation. The value should be the symbol `error', -`ask', `cancel', or `loopback'. See the GnuPG manual for the -meanings. - -In epa commands, a particularly useful mode is `loopback', which -redirects all Pinentry queries to the caller, so Emacs can query -passphrase through the minibuffer, instead of external Pinentry -program." - :type '(choice (const nil) - (const ask) - (const cancel) - (const error) - (const loopback)) - :group 'epa - :version "25.1") +(define-obsolete-variable-alias + 'epa-entry-mode 'epg-entry-mode "27.1") (defgroup epa-faces nil "Faces for epa-mode." diff --git a/lisp/epg-config.el b/lisp/epg-config.el index d30ebea2d6..ea57adc12f 100644 --- a/lisp/epg-config.el +++ b/lisp/epg-config.el @@ -74,6 +74,28 @@ epg-passphrase-coding-system :group 'epg :type 'symbol) + +;; In the doc string below, we say "symbol `error'" to avoid producing +;; a hyperlink for `error' the function. +(defcustom epg-pinentry-mode nil + "The pinentry mode. + +GnuPG 2.1 or later has an option to control the behavior of +Pinentry invocation. The value should be the symbol `error', +`ask', `cancel', or `loopback'. See the GnuPG manual for the +meanings. + +A particularly useful mode is `loopback', which redirects all +Pinentry queries to the caller, so Emacs can query passphrase +through the minibuffer, instead of external Pinentry program." + :type '(choice (const nil) + (const ask) + (const cancel) + (const error) + (const loopback)) + :group 'epa + :version "27.1") + (defcustom epg-debug nil "If non-nil, debug output goes to the \" *epg-debug*\" buffer. Note that the buffer name starts with a space." diff --git a/lisp/epg.el b/lisp/epg.el index dc0e2df583..c42520e3db 100644 --- a/lisp/epg.el +++ b/lisp/epg.el @@ -211,7 +211,7 @@ epg--gv-nreverse output-file result operation - pinentry-mode + (pinentry-mode epg-pinentry-mode) (error-output "") error-buffer) -- 2.11.0 --=-=-=-- From unknown Wed Jun 25 00:27:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26298: 26.0.50; Gnus fails to sign mail with PGP Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Thu, 17 May 2018 23:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26298 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Toon Claes Cc: Joseph Mingrone , 26298@debbugs.gnu.org, Torsten Bronger Received: via spool by 26298-submit@debbugs.gnu.org id=B26298.152660048523231 (code B ref 26298); Thu, 17 May 2018 23:42:02 +0000 Received: (at 26298) by debbugs.gnu.org; 17 May 2018 23:41:25 +0000 Received: from localhost ([127.0.0.1]:38966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fJSWT-00062c-Ag for submit@debbugs.gnu.org; Thu, 17 May 2018 19:41:25 -0400 Received: from mail-it0-f41.google.com ([209.85.214.41]:50637) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fJSWR-00062Q-Hh for 26298@debbugs.gnu.org; Thu, 17 May 2018 19:41:24 -0400 Received: by mail-it0-f41.google.com with SMTP id p3-v6so11043240itc.0 for <26298@debbugs.gnu.org>; Thu, 17 May 2018 16:41:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=8suAt9NbGQy6xh6sZGzuyP3p1fW/gjXw9NEFk+O0o8A=; b=WxAoW5763xYm8CzifiEwhtyG+aRLs9lyZrNpEpwx/6oO5ZguXYTntEO+B2tOPaEqry OEaXKrnz0cz7BK8HSqB8x08upAW2LCS1ww4dXEvRBOAuCrFUnf54GhcOsp9pxlDeBPUH yXg0fulO/Mkl5oYwcPut5tnczV1KSE00WjKcDHX1hEQkq2CspQJqDPeiJmu2VmlSlgNC D4rV3Be8y7vyexzMjO4R4eEwBvYak+3Iy7rmUROTVVraGJnFnUZUt/YFKa6+BGIdP8Ru diKan1Nuyaad84nbNEz/incQOvAhMGUvgjypbi11DdoSCwXV35XtJNFvqwgH6EYA1HGT Kcjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=8suAt9NbGQy6xh6sZGzuyP3p1fW/gjXw9NEFk+O0o8A=; b=JIpwm3lUq3fVf7olnzxcKJy8LP0TA2KnS6Zzc9CiruZQJCO9ovAWtJrmN9BTqG4vEG l0L977ZlXKID9QsZZ5pnv6wOY7e+IlesogNy7BmNM6Ak3af1bfMQDD1otyQCa7pNhPXA AWRaSyVF4F7GUALsiocGP/TszvrJdqv+bAJZ2WvUqrDuo0Cr4LwA79cXN+q0AkdKAAvk 4wDHqy/5oe25EXGfYeA92Mf4LpZ1ujtz9SlsXsa/ni/2RF+gLUSXff1KKPA7iG9QCLPX FD7nqbvR6bFnxfgglMq7mrm0Z7EDpODCWMLurUBevCJPoxChM5PX0wqF1/enSSsyuuDh DeQw== X-Gm-Message-State: ALKqPwcuv1by8mEFOoPPNY+bhr36aEaO2c7Nzv4AGCPCPigprfkJoC9M N0kT2S+voHLCAeUtipWEEGE= X-Google-Smtp-Source: AB8JxZprvUX0fSPTUk8GlXDjE/d98Hqy3PlIxB6eVVXPxfWw4dbvgBEdyIZYM5UJ7Lo1frc2xjMNiQ== X-Received: by 2002:a24:f34d:: with SMTP id t13-v6mr4594694iti.123.1526600478042; Thu, 17 May 2018 16:41:18 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id l202-v6sm4085713itb.26.2018.05.17.16.41.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 May 2018 16:41:16 -0700 (PDT) From: Noam Postavsky References: <87h92cp9dh.fsf@wilson.bronger.org> <87k1sqoz6f.fsf@gmail.com> Date: Thu, 17 May 2018 19:41:15 -0400 In-Reply-To: <87k1sqoz6f.fsf@gmail.com> (Noam Postavsky's message of "Sun, 29 Apr 2018 10:38:32 -0400") Message-ID: <87po1tj1es.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Noam Postavsky writes: > So perhaps the best solution is simply rename epa-pinentry-mode to > epg-pinentry-mode, and use it is as the default > epg-context-pinentry-mode value (see attached). Here's a more complete patch. I will push to master in a few days. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=v2-0001-Move-epa-pinentry-mode-to-epg-config-Bug-26298.patch Content-Description: patch >From 034448c4d8e1adf85ef599e8612cdb1386433b09 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Sun, 29 Apr 2018 10:32:03 -0400 Subject: [PATCH v2] Move epa-pinentry-mode to epg-config (Bug#26298) * lisp/epa.el (epa-pinentry-mode): Make into obsolete alias for... * lisp/epg-config.el (epg-pinentry-mode): ...this new user option. * lisp/epg.el (epg-context): Use it as the default value for pinentry-mode. * etc/NEWS: Announce name change. * lisp/epa-file.el (epa-file-insert-file-contents) (epa-file-write-region): * lisp/epa.el(epa-decrypt-file, epa-sign-file) (epa-encrypt-file, epa-decrypt-region) (epa-sign-region, epa-encrypt-region): Don't change epg-context-pinentry-mode from the default. --- etc/NEWS | 3 +++ lisp/epa-file.el | 2 -- lisp/epa.el | 30 ++---------------------------- lisp/epg-config.el | 22 ++++++++++++++++++++++ lisp/epg.el | 2 +- 5 files changed, 28 insertions(+), 31 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index c7ffb17ad3..4a4c8f2de4 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -442,6 +442,9 @@ are formatted as MIME digests. *** 'message-forward-included-headers' has changed its default to exclude most headers when forwarding. +** 'epa-pinentry-mode' is renamed to 'epg-pinentry-mode', +It now applies to epg functions as well as epa functions. + * New Modes and Packages in Emacs 27.1 +++ diff --git a/lisp/epa-file.el b/lisp/epa-file.el index 1de2f9ba2d..866a4ae03a 100644 --- a/lisp/epa-file.el +++ b/lisp/epa-file.el @@ -147,7 +147,6 @@ epa-file-insert-file-contents context (cons #'epa-progress-callback-function (format "Decrypting %s" file))) - (setf (epg-context-pinentry-mode context) epa-pinentry-mode) (unwind-protect (progn (if replace @@ -236,7 +235,6 @@ epa-file-write-region (cons #'epa-progress-callback-function (format "Encrypting %s" file))) (setf (epg-context-armor context) epa-armor) - (setf (epg-context-pinentry-mode context) epa-pinentry-mode) (condition-case error (setq string (epg-encrypt-string diff --git a/lisp/epa.el b/lisp/epa.el index a375cd6170..b9e7cbbb94 100644 --- a/lisp/epa.el +++ b/lisp/epa.el @@ -56,27 +56,8 @@ epa-info-window-height :type 'integer :group 'epa) -;; In the doc string below, we say "symbol `error'" to avoid producing -;; a hyperlink for `error' the function. -(defcustom epa-pinentry-mode nil - "The pinentry mode. - -GnuPG 2.1 or later has an option to control the behavior of -Pinentry invocation. The value should be the symbol `error', -`ask', `cancel', or `loopback'. See the GnuPG manual for the -meanings. - -In epa commands, a particularly useful mode is `loopback', which -redirects all Pinentry queries to the caller, so Emacs can query -passphrase through the minibuffer, instead of external Pinentry -program." - :type '(choice (const nil) - (const ask) - (const cancel) - (const error) - (const loopback)) - :group 'epa - :version "25.1") +(define-obsolete-variable-alias + 'epa-entry-mode 'epg-entry-mode "27.1") (defgroup epa-faces nil "Faces for epa-mode." @@ -695,7 +676,6 @@ epa-decrypt-file #'epa-progress-callback-function (format "Decrypting %s..." (file-name-nondirectory decrypt-file)))) - (setf (epg-context-pinentry-mode context) epa-pinentry-mode) (message "Decrypting %s..." (file-name-nondirectory decrypt-file)) (condition-case error (epg-decrypt-file context decrypt-file plain-file) @@ -791,7 +771,6 @@ epa-sign-file #'epa-progress-callback-function (format "Signing %s..." (file-name-nondirectory file)))) - (setf (epg-context-pinentry-mode context) epa-pinentry-mode) (message "Signing %s..." (file-name-nondirectory file)) (condition-case error (epg-sign-file context file signature mode) @@ -822,7 +801,6 @@ epa-encrypt-file #'epa-progress-callback-function (format "Encrypting %s..." (file-name-nondirectory file)))) - (setf (epg-context-pinentry-mode context) epa-pinentry-mode) (message "Encrypting %s..." (file-name-nondirectory file)) (condition-case error (epg-encrypt-file context file recipients cipher) @@ -865,7 +843,6 @@ epa-decrypt-region (cons #'epa-progress-callback-function "Decrypting...")) - (setf (epg-context-pinentry-mode context) epa-pinentry-mode) (message "Decrypting...") (condition-case error (setq plain (epg-decrypt-string context (buffer-substring start end))) @@ -1070,7 +1047,6 @@ epa-sign-region (cons #'epa-progress-callback-function "Signing...")) - (setf (epg-context-pinentry-mode context) epa-pinentry-mode) (message "Signing...") (condition-case error (setq signature (epg-sign-string context @@ -1159,7 +1135,6 @@ epa-encrypt-region (cons #'epa-progress-callback-function "Encrypting...")) - (setf (epg-context-pinentry-mode context) epa-pinentry-mode) (message "Encrypting...") (condition-case error (setq cipher (epg-encrypt-string context @@ -1328,7 +1303,6 @@ epa-insert-keys ;; (cons ;; #'epa-progress-callback-function ;; "Signing keys...")) -;; (setf (epg-context-pinentry-mode context) epa-pinentry-mode) ;; (message "Signing keys...") ;; (epg-sign-keys context keys local) ;; (message "Signing keys...done"))) diff --git a/lisp/epg-config.el b/lisp/epg-config.el index d30ebea2d6..ea57adc12f 100644 --- a/lisp/epg-config.el +++ b/lisp/epg-config.el @@ -74,6 +74,28 @@ epg-passphrase-coding-system :group 'epg :type 'symbol) + +;; In the doc string below, we say "symbol `error'" to avoid producing +;; a hyperlink for `error' the function. +(defcustom epg-pinentry-mode nil + "The pinentry mode. + +GnuPG 2.1 or later has an option to control the behavior of +Pinentry invocation. The value should be the symbol `error', +`ask', `cancel', or `loopback'. See the GnuPG manual for the +meanings. + +A particularly useful mode is `loopback', which redirects all +Pinentry queries to the caller, so Emacs can query passphrase +through the minibuffer, instead of external Pinentry program." + :type '(choice (const nil) + (const ask) + (const cancel) + (const error) + (const loopback)) + :group 'epa + :version "27.1") + (defcustom epg-debug nil "If non-nil, debug output goes to the \" *epg-debug*\" buffer. Note that the buffer name starts with a space." diff --git a/lisp/epg.el b/lisp/epg.el index e6b4af2b36..f79f2046de 100644 --- a/lisp/epg.el +++ b/lisp/epg.el @@ -207,7 +207,7 @@ 'epg-error output-file result operation - pinentry-mode + (pinentry-mode epg-pinentry-mode) (error-output "") error-buffer) -- 2.11.0 --=-=-=-- From unknown Wed Jun 25 00:27:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26298: 26.0.50; Gnus fails to sign mail with PGP Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Fri, 18 May 2018 09:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26298 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Noam Postavsky Cc: Joseph Mingrone , Toon Claes , 26298@debbugs.gnu.org, Torsten Bronger Received: via spool by 26298-submit@debbugs.gnu.org id=B26298.152663734312900 (code B ref 26298); Fri, 18 May 2018 09:56:02 +0000 Received: (at 26298) by debbugs.gnu.org; 18 May 2018 09:55:43 +0000 Received: from localhost ([127.0.0.1]:39158 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fJc6x-0003M0-08 for submit@debbugs.gnu.org; Fri, 18 May 2018 05:55:43 -0400 Received: from mail-wm0-f47.google.com ([74.125.82.47]:55429) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fJc6u-0003Ln-IW for 26298@debbugs.gnu.org; Fri, 18 May 2018 05:55:41 -0400 Received: by mail-wm0-f47.google.com with SMTP id a8-v6so13091836wmg.5 for <26298@debbugs.gnu.org>; Fri, 18 May 2018 02:55:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:mail-followup-to:date:in-reply-to :message-id:user-agent:mime-version; bh=FFd+CmtD0JFQSWZ54eIRsZi2k30Gzf6l9LNlMuxVFrI=; b=tXm0ofrFbK6HOZQezhbQBvoiZ7j8PI5fV0BdbqoL5aI5E1yy+pQ5SQxlM/QzMXlMFE WIm9UXOgu7/133vXZpbxI5nnr7dJa+LWh7Fq+urTSvIUin7Ftxrg2mQRtXzJNmc0Y4E2 i2Xpx3qv9QfWT+nvJ8FBH7BbfdbD5Wkg9y2ik0dvgKj21Ew99JOIhAlzNE3+Q+5bPcDU 8yxrQbSwflUnQuM/qfe5rMsQ0lz4dX52/blezN0/SwDhM/bI4voxrK0gZx9eYJTdYRcL bj3EeowXJiy9emYBsVD7jmpGJORuCZdG5X4fXW/m+MjHGQCDEWHPLYgLdxwvP/QD4K8c JUbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-followup-to :date:in-reply-to:message-id:user-agent:mime-version; bh=FFd+CmtD0JFQSWZ54eIRsZi2k30Gzf6l9LNlMuxVFrI=; b=lW8mRF7becwLc3UuQ1K4IcmuR3zyHMbz29ObikuNo6ZMDI/5u+9nSpzyX6IiOxgvS6 kgQHMGB/aqgoJtsq7Dp9L5voKfjJZ68Wi1NkKvEXNoBwYwa6wz9fo6Tdazzj9d2z/VOD YjsFwkReAHpCzLkv7zvicwRUllum5vkmEcrzSKDd9Qv5yyo2hr0HTWzqTS1i6WDP3CUg Gc6L1KQh2+vapObAc2ZCCHRCgYEwiSTuSJKHWnyPxci6vOuMf6DeezO6au9SKD85OQ+8 kawj1THjzVz5b9Y+dWfWnFPO+gDLNOZDDVa15L/CjWC87S6x3UTgEn9hR/bCqCgkWB4C QGPw== X-Gm-Message-State: ALKqPwdsOKSDRihG6f8uElXCIpmDATsfLCMHE5Iu7covbdqbT2AcL0NK 3aK6D4IwiG7c8FIAXZ/3ggclPQ== X-Google-Smtp-Source: AB8JxZowyecIn5IN4HOafHsa+wBT+8Fq3liqErZy+KhfaUu88fa/AXbi+CLqbv83AMjwjlouAFFk3Q== X-Received: by 2002:aa7:d84a:: with SMTP id f10-v6mr11138122eds.204.1526637334825; Fri, 18 May 2018 02:55:34 -0700 (PDT) Received: from localhost ([2a02:8084:4f41:8c80:9c34:da08:a010:edfc]) by smtp.gmail.com with ESMTPSA id r48-v6sm3535529edd.16.2018.05.18.02.55.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 02:55:34 -0700 (PDT) From: "Basil L. Contovounesios" References: <87h92cp9dh.fsf@wilson.bronger.org> <87k1sqoz6f.fsf@gmail.com> <87po1tj1es.fsf@gmail.com> Mail-Followup-To: Noam Postavsky , Toon Claes , Joseph Mingrone , 26298@debbugs.gnu.org, Torsten Bronger Date: Fri, 18 May 2018 10:55:33 +0100 In-Reply-To: <87po1tj1es.fsf@gmail.com> (Noam Postavsky's message of "Thu, 17 May 2018 19:41:15 -0400") Message-ID: <87lgchi8yy.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Noam Postavsky writes: > * lisp/epa-file.el (epa-file-insert-file-contents) > (epa-file-write-region): > * lisp/epa.el(epa-decrypt-file, epa-sign-file) ^^ Should there be a space here, or does it not matter? > diff --git a/etc/NEWS b/etc/NEWS > index c7ffb17ad3..4a4c8f2de4 100644 > --- a/etc/NEWS > +++ b/etc/NEWS > @@ -442,6 +442,9 @@ are formatted as MIME digests. > *** 'message-forward-included-headers' has changed its default to > exclude most headers when forwarding. > > +** 'epa-pinentry-mode' is renamed to 'epg-pinentry-mode', Looks like that trailing comma should be a full stop. > diff --git a/lisp/epa.el b/lisp/epa.el > index a375cd6170..b9e7cbbb94 100644 > --- a/lisp/epa.el > +++ b/lisp/epa.el > @@ -56,27 +56,8 @@ epa-info-window-height > :type 'integer > :group 'epa) > > -;; In the doc string below, we say "symbol `error'" to avoid producing > -;; a hyperlink for `error' the function. > -(defcustom epa-pinentry-mode nil > - "The pinentry mode. > - > -GnuPG 2.1 or later has an option to control the behavior of > -Pinentry invocation. The value should be the symbol `error', > -`ask', `cancel', or `loopback'. See the GnuPG manual for the > -meanings. > - > -In epa commands, a particularly useful mode is `loopback', which > -redirects all Pinentry queries to the caller, so Emacs can query > -passphrase through the minibuffer, instead of external Pinentry > -program." > - :type '(choice (const nil) > - (const ask) > - (const cancel) > - (const error) > - (const loopback)) > - :group 'epa > - :version "25.1") > +(define-obsolete-variable-alias > + 'epa-entry-mode 'epg-entry-mode "27.1") These should be epa-pinentry-mode and epg-pinentry-mode, respectively, right? > diff --git a/lisp/epg-config.el b/lisp/epg-config.el > index d30ebea2d6..ea57adc12f 100644 > --- a/lisp/epg-config.el > +++ b/lisp/epg-config.el > @@ -74,6 +74,28 @@ epg-passphrase-coding-system > :group 'epg > :type 'symbol) > > + > +;; In the doc string below, we say "symbol `error'" to avoid producing > +;; a hyperlink for `error' the function. > +(defcustom epg-pinentry-mode nil > + "The pinentry mode. > + > +GnuPG 2.1 or later has an option to control the behavior of > +Pinentry invocation. The value should be the symbol `error', > +`ask', `cancel', or `loopback'. See the GnuPG manual for the > +meanings. > + > +A particularly useful mode is `loopback', which redirects all > +Pinentry queries to the caller, so Emacs can query passphrase > +through the minibuffer, instead of external Pinentry program." > + :type '(choice (const nil) > + (const ask) > + (const cancel) > + (const error) > + (const loopback)) > + :group 'epa > + :version "27.1") Should the :group be changed to 'epg? -- Basil From unknown Wed Jun 25 00:27:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26298: 26.0.50; Gnus fails to sign mail with PGP Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Fri, 18 May 2018 13:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26298 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Toon Claes Cc: Joseph Mingrone , 26298@debbugs.gnu.org, Torsten Bronger Received: via spool by 26298-submit@debbugs.gnu.org id=B26298.15266507099574 (code B ref 26298); Fri, 18 May 2018 13:39:02 +0000 Received: (at 26298) by debbugs.gnu.org; 18 May 2018 13:38:29 +0000 Received: from localhost ([127.0.0.1]:39315 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fJfaW-0002UL-V8 for submit@debbugs.gnu.org; Fri, 18 May 2018 09:38:29 -0400 Received: from mail-io0-f169.google.com ([209.85.223.169]:44577) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fJfaT-0002U8-UU for 26298@debbugs.gnu.org; Fri, 18 May 2018 09:38:26 -0400 Received: by mail-io0-f169.google.com with SMTP id d11-v6so6207419iof.11 for <26298@debbugs.gnu.org>; Fri, 18 May 2018 06:38:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=zhJR6hcRNEab8MpvE8N5PLVmcdT/GmtEJcd/k64nDgk=; b=DYZM5fi77SXCxxseZU7cjNvcsH+vtj2yjhffTbCFQztIWDRRxfSwte/PKF1QBiHVu1 CTLOYt2YHPCtDEw2mOuKdg5OfkHZoVUXcR7IouBQfrpD5bfqnuCEXN+5KHlRQquaPp6l Qui21GZMiMnDQfMWj625p2nPmjE/osIczo8iEdykzKnglS2GVZyL7yhvTJa+rBLRQFVo lItY1kp6uUglSsKRaiQC8YHwDaMXYQrQ4aI44QPIadHudhaQ9hux0Q9b66vY5spm1Zok FCQQ/1G3IwMWhWBekgQ8fwJ2UOhotc/el1TcJmpqaOeAxgIxNFxWPVqOXMMCCnmbw33C MUNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=zhJR6hcRNEab8MpvE8N5PLVmcdT/GmtEJcd/k64nDgk=; b=nOyBJqCvbzYMVmBHlPWImwhk9gQcWcTwL3ngbsyRXTaRHuQjGokcYav9X2Hwj4XzoE G6O3pGn7muwOamAYauRA45WSmWQKhx+QcCAOX5Lh1YIUmVA41OfP9Gu6s7aCtvFDbjiv doKIWGYy8YnRtl2hjJ0OO34B0DaLGdDZxvoGotQCpp5ExL8a7oZxPSh3e0zgOshJNP2q rSFpk1BGXwGLifFwFqQKo3Pp2Kmo3VQgFk6zV7NWfl+o7L1X9qLQCE2cmTepJZp9JMnz u+N07E+Af1WPD1Y2ZKcxbZctLYB3mRhIsv0fzfteqgGfJJI+DNkwpisu0mr8OQzdjbYf 2PpQ== X-Gm-Message-State: ALKqPweKfPs+HgDrwHNNLnWd2aSE5QzRoJRN6MKSasrGWSRzIDnxn5KC VZj1GonwvH9cRnXMUuigX54= X-Google-Smtp-Source: AB8JxZr6RCQcLYja2RZMT4f5sDDVXgcZc1u3o71QmS44b1jmCGeFfdMvgdGZgBkJFx+y6OQp2w6Tag== X-Received: by 2002:a6b:957:: with SMTP id j84-v6mr10565864ioi.232.1526650700388; Fri, 18 May 2018 06:38:20 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id x189-v6sm811113ite.2.2018.05.18.06.38.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 06:38:19 -0700 (PDT) From: Noam Postavsky References: <87h92cp9dh.fsf@wilson.bronger.org> <87k1sqoz6f.fsf@gmail.com> <87po1tj1es.fsf@gmail.com> <87lgchi8yy.fsf@tcd.ie> Date: Fri, 18 May 2018 09:38:17 -0400 In-Reply-To: <87lgchi8yy.fsf@tcd.ie> (Basil L. Contovounesios's message of "Fri, 18 May 2018 10:55:33 +0100") Message-ID: <87muwxhynq.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.6 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.6 (-) --=-=-= Content-Type: text/plain "Basil L. Contovounesios" writes: > Noam Postavsky writes: > >> * lisp/epa-file.el (epa-file-insert-file-contents) >> (epa-file-write-region): >> * lisp/epa.el(epa-decrypt-file, epa-sign-file) > ^^ > Should there be a space here, or does it not matter? >> +** 'epa-pinentry-mode' is renamed to 'epg-pinentry-mode', > > Looks like that trailing comma should be a full stop. >> +(define-obsolete-variable-alias >> + 'epa-entry-mode 'epg-entry-mode "27.1") > > These should be epa-pinentry-mode and epg-pinentry-mode, respectively, > right? Oops, thanks for catching these; especially that last one, yikes. >> +(defcustom epg-pinentry-mode nil >> + :group 'epa > Should the :group be changed to 'epg? Or we can just remove it altogether since :group defaults to the last created group. --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=v3-0001-Move-epa-pinentry-mode-to-epg-config-Bug-26298.patch Content-Description: patch >From 23caf10d96f14ecc4ec81a8e373001c96b82e5fc Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Sun, 29 Apr 2018 10:32:03 -0400 Subject: [PATCH v3] Move epa-pinentry-mode to epg-config (Bug#26298) * lisp/epa.el (epa-pinentry-mode): Make into obsolete alias for... * lisp/epg-config.el (epg-pinentry-mode): ...this new user option. * lisp/epg.el (epg-context): Use it as the default value for pinentry-mode. * etc/NEWS: Announce name change. * lisp/epa-file.el (epa-file-insert-file-contents) (epa-file-write-region): * lisp/epa.el (epa-decrypt-file, epa-sign-file) (epa-encrypt-file, epa-decrypt-region) (epa-sign-region, epa-encrypt-region): Don't change epg-context-pinentry-mode from the default. --- etc/NEWS | 3 +++ lisp/epa-file.el | 2 -- lisp/epa.el | 30 ++---------------------------- lisp/epg-config.el | 21 +++++++++++++++++++++ lisp/epg.el | 2 +- 5 files changed, 27 insertions(+), 31 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index c7ffb17ad3..ba9f58a73f 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -442,6 +442,9 @@ are formatted as MIME digests. *** 'message-forward-included-headers' has changed its default to exclude most headers when forwarding. +** 'epa-pinentry-mode' is renamed to 'epg-pinentry-mode'. +It now applies to epg functions as well as epa functions. + * New Modes and Packages in Emacs 27.1 +++ diff --git a/lisp/epa-file.el b/lisp/epa-file.el index 1de2f9ba2d..866a4ae03a 100644 --- a/lisp/epa-file.el +++ b/lisp/epa-file.el @@ -147,7 +147,6 @@ epa-file-insert-file-contents context (cons #'epa-progress-callback-function (format "Decrypting %s" file))) - (setf (epg-context-pinentry-mode context) epa-pinentry-mode) (unwind-protect (progn (if replace @@ -236,7 +235,6 @@ epa-file-write-region (cons #'epa-progress-callback-function (format "Encrypting %s" file))) (setf (epg-context-armor context) epa-armor) - (setf (epg-context-pinentry-mode context) epa-pinentry-mode) (condition-case error (setq string (epg-encrypt-string diff --git a/lisp/epa.el b/lisp/epa.el index a375cd6170..16621659a6 100644 --- a/lisp/epa.el +++ b/lisp/epa.el @@ -56,27 +56,8 @@ epa-info-window-height :type 'integer :group 'epa) -;; In the doc string below, we say "symbol `error'" to avoid producing -;; a hyperlink for `error' the function. -(defcustom epa-pinentry-mode nil - "The pinentry mode. - -GnuPG 2.1 or later has an option to control the behavior of -Pinentry invocation. The value should be the symbol `error', -`ask', `cancel', or `loopback'. See the GnuPG manual for the -meanings. - -In epa commands, a particularly useful mode is `loopback', which -redirects all Pinentry queries to the caller, so Emacs can query -passphrase through the minibuffer, instead of external Pinentry -program." - :type '(choice (const nil) - (const ask) - (const cancel) - (const error) - (const loopback)) - :group 'epa - :version "25.1") +(define-obsolete-variable-alias + 'epa-pinentry-mode 'epg-pinentry-mode "27.1") (defgroup epa-faces nil "Faces for epa-mode." @@ -695,7 +676,6 @@ epa-decrypt-file #'epa-progress-callback-function (format "Decrypting %s..." (file-name-nondirectory decrypt-file)))) - (setf (epg-context-pinentry-mode context) epa-pinentry-mode) (message "Decrypting %s..." (file-name-nondirectory decrypt-file)) (condition-case error (epg-decrypt-file context decrypt-file plain-file) @@ -791,7 +771,6 @@ epa-sign-file #'epa-progress-callback-function (format "Signing %s..." (file-name-nondirectory file)))) - (setf (epg-context-pinentry-mode context) epa-pinentry-mode) (message "Signing %s..." (file-name-nondirectory file)) (condition-case error (epg-sign-file context file signature mode) @@ -822,7 +801,6 @@ epa-encrypt-file #'epa-progress-callback-function (format "Encrypting %s..." (file-name-nondirectory file)))) - (setf (epg-context-pinentry-mode context) epa-pinentry-mode) (message "Encrypting %s..." (file-name-nondirectory file)) (condition-case error (epg-encrypt-file context file recipients cipher) @@ -865,7 +843,6 @@ epa-decrypt-region (cons #'epa-progress-callback-function "Decrypting...")) - (setf (epg-context-pinentry-mode context) epa-pinentry-mode) (message "Decrypting...") (condition-case error (setq plain (epg-decrypt-string context (buffer-substring start end))) @@ -1070,7 +1047,6 @@ epa-sign-region (cons #'epa-progress-callback-function "Signing...")) - (setf (epg-context-pinentry-mode context) epa-pinentry-mode) (message "Signing...") (condition-case error (setq signature (epg-sign-string context @@ -1159,7 +1135,6 @@ epa-encrypt-region (cons #'epa-progress-callback-function "Encrypting...")) - (setf (epg-context-pinentry-mode context) epa-pinentry-mode) (message "Encrypting...") (condition-case error (setq cipher (epg-encrypt-string context @@ -1328,7 +1303,6 @@ epa-insert-keys ;; (cons ;; #'epa-progress-callback-function ;; "Signing keys...")) -;; (setf (epg-context-pinentry-mode context) epa-pinentry-mode) ;; (message "Signing keys...") ;; (epg-sign-keys context keys local) ;; (message "Signing keys...done"))) diff --git a/lisp/epg-config.el b/lisp/epg-config.el index d30ebea2d6..33262394a7 100644 --- a/lisp/epg-config.el +++ b/lisp/epg-config.el @@ -74,6 +74,27 @@ epg-passphrase-coding-system :group 'epg :type 'symbol) + +;; In the doc string below, we say "symbol `error'" to avoid producing +;; a hyperlink for `error' the function. +(defcustom epg-pinentry-mode nil + "The pinentry mode. + +GnuPG 2.1 or later has an option to control the behavior of +Pinentry invocation. The value should be the symbol `error', +`ask', `cancel', or `loopback'. See the GnuPG manual for the +meanings. + +A particularly useful mode is `loopback', which redirects all +Pinentry queries to the caller, so Emacs can query passphrase +through the minibuffer, instead of external Pinentry program." + :type '(choice (const nil) + (const ask) + (const cancel) + (const error) + (const loopback)) + :version "27.1") + (defcustom epg-debug nil "If non-nil, debug output goes to the \" *epg-debug*\" buffer. Note that the buffer name starts with a space." diff --git a/lisp/epg.el b/lisp/epg.el index e6b4af2b36..f79f2046de 100644 --- a/lisp/epg.el +++ b/lisp/epg.el @@ -207,7 +207,7 @@ 'epg-error output-file result operation - pinentry-mode + (pinentry-mode epg-pinentry-mode) (error-output "") error-buffer) -- 2.11.0 --=-=-=-- From unknown Wed Jun 25 00:27:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26298: 26.0.50; Gnus fails to sign mail with PGP Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Wed, 23 May 2018 23:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26298 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Toon Claes Cc: Joseph Mingrone , 26298@debbugs.gnu.org, Torsten Bronger Received: via spool by 26298-submit@debbugs.gnu.org id=B26298.152711700428141 (code B ref 26298); Wed, 23 May 2018 23:11:02 +0000 Received: (at 26298) by debbugs.gnu.org; 23 May 2018 23:10:04 +0000 Received: from localhost ([127.0.0.1]:45736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLctP-0007Jk-RY for submit@debbugs.gnu.org; Wed, 23 May 2018 19:10:04 -0400 Received: from mail-io0-f169.google.com ([209.85.223.169]:40111) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLctN-0007J7-FH; Wed, 23 May 2018 19:10:02 -0400 Received: by mail-io0-f169.google.com with SMTP id g14-v6so46860ioc.7; Wed, 23 May 2018 16:10:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Zi1OvfKZmYXnknMs7OyO0alL5PTgbMojlWnjrVEKkzA=; b=m9wYH25b4TBO3tsYZzxy5hq7Y49aOFvwhTipOgVoskGB8WK7Evb2XXXi0Q+D5cVKib 5q7UFUsZlFw3gpFd+Kcovb8fy/u0DdlnLy5zxxxSk6dXF99LhlZZ/RYR3qS9sosvAarH UyX9IHGvJL3IImguKikdSJGclKuKYMg68BLQ0CbMlGcyNvoQyBTANE5fw+5XLasMq+Uf FoPHTxZ7GnzxodQOJAnQ/b0g5Z3a/LUidxj299gEmqrYY5tOm1W3XCv2YnOQugDr1DBl gr62XIBtmWvEYk7e56Sg0avx8Lu3pIsTmJMtKqTyEvOGM3rYUbjf735dSM8si1nguXJx PcpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Zi1OvfKZmYXnknMs7OyO0alL5PTgbMojlWnjrVEKkzA=; b=XX7QcqiZdwT5/h4bnPmDw0ipjchd23yCyniWguJ7lrmlyoe4WVEjBGr06R+cs0UqY4 LzarcvTctSWGGHEnr6ka4/gqFpxG26kChXLXEgLJuma+sIQnjrNryxpcBhQ9cjUQRigA H9lct4B9Vfz5xMJS4kZ2R5xBBPQCYD43lTQB/lgmfp75Sso8T4ESKBGUpmNaPnAl2XRI C0sn40CmrlPv8lRvXkLXYIWCP2SGNd4blawI1ap2zc3ghvqkE9jtZw06i/MjAgXAPbtF Y0Zlwd8ZIUmKv2TfrP0gey6+3WNtFRCcwQSU8u3cEtFZRcst1HZHvloQYK/VZn+j+9M2 Mnbw== X-Gm-Message-State: ALKqPwd8K7KpRgjX3i2X69LydO8TvKDCVLYar9kn0GSDHB3R3qMU6uS3 jNz1powiazZHxUgVt7ui9xB1OQ== X-Google-Smtp-Source: AB8JxZq0xBkBP5MjhEzK7idDTdfXybJeR25qnLL3S623Zju9JpLE+llDZ41K9CDKhcvDOPtp4oPjrA== X-Received: by 2002:a6b:3c11:: with SMTP id k17-v6mr2928677iob.296.1527116995894; Wed, 23 May 2018 16:09:55 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id y204-v6sm12187671ioy.88.2018.05.23.16.09.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 May 2018 16:09:54 -0700 (PDT) From: Noam Postavsky References: <87h92cp9dh.fsf@wilson.bronger.org> <87k1sqoz6f.fsf@gmail.com> <87po1tj1es.fsf@gmail.com> <87lgchi8yy.fsf@tcd.ie> <87muwxhynq.fsf@gmail.com> Date: Wed, 23 May 2018 19:09:53 -0400 In-Reply-To: <87muwxhynq.fsf@gmail.com> (Noam Postavsky's message of "Fri, 18 May 2018 09:38:17 -0400") Message-ID: <87h8myge9q.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.8 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) tags 26298 fixed close 26298 27.1 quit Noam Postavsky writes: > Subject: [PATCH v3] Move epa-pinentry-mode to epg-config (Bug#26298) Pushed to master. [1: 302e500087]: 2018-05-23 07:53:58 -0400 Move epa-pinentry-mode to epg-config (Bug#26298) https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=302e500087fd4cc1c5f37ec87c98e828b22aaa05