From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Sharon Kimble Newsgroups: gmane.emacs.help Subject: [SOLVED] Re: How to get a pinentry box to digitally sign all emails Date: Thu, 16 Apr 2020 16:36:38 +0100 Message-ID: <87zhbbwigp.fsf_-_@skimble.plus.com> References: <874ktk7r5s.fsf@skimble.plus.com> <87o8rsoe2c.fsf@skimble.plus.com> <875zdz1t9c.fsf@skimble.plus.com> <87o8rry303.fsf@skimble.plus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="67002"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.90 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Robert Pluim Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 16 17:37:54 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jP6aO-000HIS-Kh for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 16 Apr 2020 17:37:52 +0200 Original-Received: from localhost ([::1]:36088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jP6aN-0005he-Lm for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 16 Apr 2020 11:37:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51169) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jP6ZS-0005EU-Dz for help-gnu-emacs@gnu.org; Thu, 16 Apr 2020 11:36:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jP6ZQ-0002Dl-LY for help-gnu-emacs@gnu.org; Thu, 16 Apr 2020 11:36:54 -0400 Original-Received: from avasout01.plus.net ([84.93.230.227]:53736) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jP6ZQ-00028j-7Z for help-gnu-emacs@gnu.org; Thu, 16 Apr 2020 11:36:52 -0400 Original-Received: from london.london ([147.147.30.144]) by smtp with ESMTPA id P6ZIjIkIsuzYfP6ZJjbcl4; Thu, 16 Apr 2020 16:36:47 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plus.com; s=042019; t=1587051407; bh=DnzoN41dd9FWWIKWSe88p1fKJTwk1wIjFBSAN1z+0gM=; h=From:To:Cc:Subject:References:Date:In-Reply-To; b=Cj/MBM66DkW6U6DBNvq0NhrkKTxs01O/rOYLlT3cdk2Y3qhNr9QdHW5Nn+xhVKn0P J8IWnRXbIYT0ZscmcBjIFWbrfJCdKek8lpR2fNY5fZkxQig96hvSsG7e1R+CdJCvOK AFS+EsKNZDH1YSp9+ZwWqsYT/zGHOTWRdKQyHIx4t+7WV+DnX/PJwuuiEK28px66rz yy5Z+MPMsTv/ylu7bvW3Ya+MrFS7dsZThf4M69B30KqLTRQmCjr8f5P8BI08dEEpUY XLDWmfrf3DUnP2uoc8ZQWTxTvhQbfgyX3d+WRpGIk724BRNiXniG6AuvTSpYbnfq3j 4aWsKSxgKCRjA== X-Clacks-Overhead: "GNU Terry Pratchett" X-CM-Score: 0.00 X-CNFS-Analysis: v=2.3 cv=H8RAP9Qi c=1 sm=1 tr=0 a=mfde8XM5OSjOt+FlnmF8Qw==:117 a=mfde8XM5OSjOt+FlnmF8Qw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=pGLkceISAAAA:8 a=EBOSESyhAAAA:8 a=LlzXLoV6AAAA:8 a=iI7HsYTVAAAA:8 a=bAHfVwKlAAAA:8 a=8TIYh3oJohu0ryX7YOYA:9 a=_BTYpehvVDHu50wr:21 a=E7hyYalUmGyxohH1:21 a=QEXdDO2ut3YA:10 a=yJM6EZoI5SlJf8ks9Ge_:22 a=diwpeB1DDhFXqWA7J4Up:22 a=KxyM1Xthmv57RbWRIpnN:22 a=fjrkRJ71zQ2jzMzczd-K:22 X-AUTH: skimble@:2500 In-Reply-To: (Robert Pluim's message of "Thu, 16 Apr 2020 16:30:37 +0200") X-CMAE-Envelope: MS4wfNnw838NJIhKAqiOgtNXRVzTjf272pcMTXqCJtGdaid9C/0a7XWlGXG2ErBFHsEoQnprlYNxuGy1/whr3BOnNBLa6nqS71P5B8o3sxuWx3RFim7q4EYt lzVzep+S+s38mNdlQVhums4efCSxjVUGtC4c7gPp3LM0umOAKS3qplZLotw7js2IW1J1/d4z452SmA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 84.93.230.227 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:122847 Archived-At: =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Robert Pluim writes: >>>>>> On Thu, 16 Apr 2020 14:27:40 +0100, Sharon Kimble said: > >> --8<---------------cut here---------------start------------->8--- > >> ;; auto-sign all mail > >> ;;(add-hook 'gnus-message-setup-hook 'mml-secure-message-sign-pgp) > >> ;;(add-hook 'message-setup-hook 'mml-secure-message-sign-pgp) > >> (setq mml-secure-openpgp-sign-with-sender t > >> ;; mml-secure-message-sign-pgp t > >> mml-secure-smime-sign-with-sender t) > >> (setq epg-pinentry-mode 'ask) > >> --8<---------------cut here---------------end--------------->8--- > >>=20 > >> And just to check, I have 'pinentry-gnome3' installed, but I have = just > >> installed all 'pinentry-*' packages. > >>=20 > >> So lets see what happens now then!? > >>=20 >=20=20=20 > Sharon> And after rebooting I'm still unable to get the pinentry box = popping up, > Sharon> although this one will be signed because I've manually insert= ed > Sharon> '<#secure method=3Dpgpmime mode=3Dsign>' at the heading off t= he mail. but > Sharon> how can I get it appearing automatically without me having to= manually > Sharon> click it in the menus? > > Remove the ';;' from your two add-hook commands above (and either > evaluate .emacs or restart emacs). > > If you=CA=BCre not getting a pinentry box from emacs, but you are getting > one from other programs, it=CA=BCs possible that gpg has decided to cache > an earlier answer. You can control that with the 'default-cache-ttl' > and 'max-cache-ttl' settings in ~/.gnupg/gpg-agent.conf (and I don=CA=BCt > remember offhand if such changes are dynamic). > Thanks for replying Robert. Bingo! Its now working as it did in emacs26, and for the benefit of the archives, this is what is in my conf file. --8<---------------cut here---------------start------------->8--- ;; auto-sign all mail (add-hook 'gnus-message-setup-hook 'mml-secure-message-sign-pgp) (add-hook 'message-setup-hook 'mml-secure-message-sign-pgp) (setq mml-secure-openpgp-sign-with-sender t mml-secure-message-sign-pgp t mml-secure-smime-sign-with-sender t) (setq epg-pinentry-mode 'ask) --8<---------------cut here---------------end--------------->8--- =20=20 Thanks for being so persistent Robert, and for the final solution. Magic!!! Thanks Sharon.=20=20 =2D --=20 A taste of linux =3D http://www.sharons.org.uk TGmeds =3D http://www.tgmeds.org.uk DrugFacts =3D https://www.drugfacts.org.uk Debian 10.2, fluxbox 1.3.7, emacs 27.0.90, org 9.3.6 =2D----BEGIN PGP SIGNATURE----- iQJPBAEBCgA5FiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAl6Ye4YbHGJvdWRpY2Nh c0Bza2ltYmxlLnBsdXMuY29tAAoJEDaBgBkK+INbnNEP/1Eub7Tc2R/X/s9S/ixu Mba/pxdphPMoCHhFC6S2nefPS6TYtVbWI1iWgAozTh3ybkdFNYluXe8VhZiZgugx YYWL2x3rompL9sFGRMpj+zOVM1rViXK3cP93YRi2WGditbGvVjbnOnS+Im+IN1fx Thx3YjAzwVpX2oEZwReNLBXnM2fOtPeTJYKJ3MWkvGYJpmFVn5tutnnk3gMHtRc9 L1TUl852x6depjXd7XuMYyDem+F5cVXu5cBDOFEEzVWQ4aafk32Us2uQinwln744 l3qmiNv/nVrdpbUjfwsap0BTDIjnZOyzHpKkCfASUMv3xVBgurIrB8UYEu5lkQW7 IShdGaF6i+ZRw1fLWL0YE3YvRmNtZNDZ1q3OtME5rcKfUw6x1+Inei7zLMHeCoYn bBtyb8ovQnWf+U5iF9+xYhdmLh3ZvvgHo4YrzfnAxw9OnN9uElITvdkywHYDpyd/ BRM3ZUUyveGQSZYh+kn3UYJ/x835TKTiKPI+9NFPRAJr1auVBHYrGjhfjT1oTt/w DrGtBN2CQlpY9CoQ5eN9HX3yK1wAXdsRc9a3CUTJwRJdJVKQc5bHaTutpUQpqFW0 HacwpDQ09ZUZDLHYUUIJxpMhABpWFsH9IOMjkdYKMCFplvxOkU++US0bTxuhGV6L Jqj4CxNz4yAkvs5zQLQoPQnf =3DUZMM =2D----END PGP SIGNATURE-----