Gnus development mailing list
 help / color / mirror / Atom feed
* Gnus/PGG password problem
@ 2003-12-20 21:17 Norman Walsh
  2003-12-20 21:47 ` Ivan Boldyrev
  2003-12-21  4:35 ` Simon Josefsson
  0 siblings, 2 replies; 5+ messages in thread
From: Norman Walsh @ 2003-12-20 21:17 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1585 bytes --]

I've been using mailcrypt for years, but someone recently pointed out
that MIME is now the "standard" way to do signing. Fair enough, I'd be
happy to make the messages look a little less awkward in
non-encryption aware readers anyway.

So I'm trying to switch to PGG. I've removed all the mailcrypt stuff from
my .gnus file and replaced it with:

;; PGG
(require 'pgg)

(setq pgg-cache-passphrase t)
(setq pgg-passphrase-cache-expiry 3600)

;; Emacs should always decrypt and verify emails automatically
(setq mm-verify-option 'always)
(setq mm-decrypt-option 'always)

;; Automcatically sign when sending mails

(defun will-you-sign ()
  (interactive)
  (if (y-or-n-p "Do you want to sign this message? ")
     (mml-secure-message-sign-pgpmime)))

(add-hook 'gnus-message-setup-hook 'will-you-sign)

In a few minutes I'll probably get around to replacing will-you-sign with
sign-always, but that isn't the issue.

With the setup above, using Gnus 5.10.2, when I send a signed message,
it asks me for my key three times in a row (apparently once for each
destination that the message goes to, the outside world, the current
group, and the monthly archive group).

What's more, if I send another message right away, it asks me three
times again. It appears not to be caching the passphrase.

Clues, please?

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | The years teach us much which the days
http://nwalsh.com/            | never knew.-- Emerson

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-12-21 16:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-20 21:17 Gnus/PGG password problem Norman Walsh
2003-12-20 21:47 ` Ivan Boldyrev
2003-12-21  4:35 ` Simon Josefsson
2003-12-21 15:53   ` Norman Walsh
2003-12-21 16:09     ` Bijan Soleymani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).