Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Hikaru Ichijyo <ichijyo@macross.sdf.jp>
To: info-gnus-english@gnu.org
Subject: autoselect GPG key for signing by group
Date: Fri, 30 Dec 2016 08:49:06 -0600	[thread overview]
Message-ID: <8xxbmvtlbfh.fsf@village.keycorner.org> (raw)

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

             reply	other threads:[~2016-12-30 14:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-30 14:49 Hikaru Ichijyo [this message]
2017-01-02 18:02 ` Peter Münster
2017-01-03  9:05 ` Jens Lechtenboerger

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=8xxbmvtlbfh.fsf@village.keycorner.org \
    --to=ichijyo@macross.sdf.jp \
    --cc=info-gnus-english@gnu.org \
    /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.
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).