help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SOLVED] Re: How to get a pinentry box to digitally sign all emails


From: Sharon Kimble
Subject: [SOLVED] Re: How to get a pinentry box to digitally sign all emails
Date: Thu, 16 Apr 2020 16:36:38 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.90 (gnu/linux)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Robert Pluim <rpluim@gmail.com> writes:

>>>>>> On Thu, 16 Apr 2020 14:27:40 +0100, Sharon Kimble 
>>>>>> <boudiccas@skimble.plus.com> 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---
>     >> 
>     >> And just to check, I have 'pinentry-gnome3' installed, but I have just
>     >> installed all 'pinentry-*' packages.
>     >> 
>     >> So lets see what happens now then!?
>     >> 
>   
>     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 inserted
>     Sharon> '<#secure method=pgpmime mode=sign>' at the heading off the 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ʼre not getting a pinentry box from emacs, but you are getting
> one from other programs, itʼs 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ʼt
> 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---
  
Thanks for being so persistent Robert, and for the final solution.
Magic!!!

Thanks
  Sharon.  
- -- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk
Debian 10.2, fluxbox 1.3.7, emacs 27.0.90, org 9.3.6
-----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
=UZMM
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]