Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* autoselect GPG key for signing by group
@ 2016-12-30 14:49 Hikaru Ichijyo
  2017-01-02 18:02 ` Peter Münster
  2017-01-03  9:05 ` Jens Lechtenboerger
  0 siblings, 2 replies; 3+ messages in thread
From: Hikaru Ichijyo @ 2016-12-30 14:49 UTC (permalink / raw)
  To: info-gnus-english

I would like to sign/decrypt messages using one key in some groups,
using a different key in other groups, and in still other groups, not
sign/decrypt at all.

I have most such per-group preferences for other non-encryption related
things setup in my ~/.gnus.el using the gnus-posting-styles mechanism,
but since that seems to mostly just set variables (and not run
commands), I'm not really sure what I would put there to do something
like this.

Most people seem to invoke GPG signing like this (assuming they only use
one key everywhere, always):

(add-hook 'gnus-message-setup-hook 'mml-secure-message-sign-pgpmime)

How would I setup my key selection to depend on what group I'm in?

-- 
He that would make his own liberty secure must guard even his enemy from
oppression; for if he violates this duty, he establishes a precedent
that will reach to himself.
					--Thomas Paine

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

* Re: autoselect GPG key for signing by group
  2016-12-30 14:49 autoselect GPG key for signing by group Hikaru Ichijyo
@ 2017-01-02 18:02 ` Peter Münster
  2017-01-03  9:05 ` Jens Lechtenboerger
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Münster @ 2017-01-02 18:02 UTC (permalink / raw)
  To: info-gnus-english

On Fri, Dec 30 2016, Hikaru Ichijyo wrote:

> How would I setup my key selection to depend on what group I'm in?

There is some useful information in the thread "Maybe encrypt message ?"
in gmane.emacs.gnus.general (I don't find any archive on the web...)

-- 
           Peter



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

* Re: autoselect GPG key for signing by group
  2016-12-30 14:49 autoselect GPG key for signing by group Hikaru Ichijyo
  2017-01-02 18:02 ` Peter Münster
@ 2017-01-03  9:05 ` Jens Lechtenboerger
  1 sibling, 0 replies; 3+ messages in thread
From: Jens Lechtenboerger @ 2017-01-03  9:05 UTC (permalink / raw)
  To: info-gnus-english

On 2016-12-30, at 08:49, Hikaru Ichijyo wrote:

> How would I setup my key selection to depend on what group I'm in?

This might work: Keep the default (nil) for
mml-secure-openpgp-sign-with-sender and set
mml-secure-openpgp-signers via posting styles.

Best wishes
Jens

P.S.  Your From address is invalid.  Thus, my first attempt to send
the above failed.  To help others answer your questions, you might
want to add the header “Mail-Copies-To: never” to your messages.
I’m using the piece of code for message-header-setup-hook described
over there: https://www.gnu.org/software/emacs/manual/message.html

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

end of thread, other threads:[~2017-01-03  9:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-30 14:49 autoselect GPG key for signing by group Hikaru Ichijyo
2017-01-02 18:02 ` Peter Münster
2017-01-03  9:05 ` Jens Lechtenboerger

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).