all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sharon Kimble <boudiccas@skimble.plus.com>
To: Robert Pluim <rpluim@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: [SOLVED] Re: How to get a pinentry box to digitally sign all emails
Date: Thu, 16 Apr 2020 16:36:38 +0100	[thread overview]
Message-ID: <87zhbbwigp.fsf_-_@skimble.plus.com> (raw)
In-Reply-To: <m2eesnijua.fsf@gmail.com> (Robert Pluim's message of "Thu, 16 Apr 2020 16:30:37 +0200")

-----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	other threads:[~2020-04-16 15:36 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-15 14:35 How to get a pinentry box to digitally sign all emails Sharon Kimble
2020-04-15 14:55 ` Robert Pluim
2020-04-15 17:26   ` Sharon Kimble
2020-04-16  9:10     ` Robert Pluim
2020-04-16 12:59       ` Sharon Kimble
2020-04-16 13:23         ` Robert Pluim
2020-04-16 13:27         ` Sharon Kimble
2020-04-16 14:30           ` Robert Pluim
2020-04-16 15:36             ` Sharon Kimble [this message]
2020-04-16 16:05               ` [SOLVED] " Robert Pluim
2020-04-15 16:26 ` Stefan Monnier
2020-04-15 16:39   ` Robert Pluim
2020-04-15 17:28     ` Sharon Kimble
2020-04-16  8:23       ` Robert Pluim
2020-04-22 17:40   ` Phillip Lord
2020-04-22 18:03     ` Robert Pluim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zhbbwigp.fsf_-_@skimble.plus.com \
    --to=boudiccas@skimble.plus.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=rpluim@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.