Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Daiki Ueno <ueno@unixuser.org>
To: Suno Ano <suno.ano@sunoano.org>
Cc: info-gnus-english@gnu.org
Subject: Re: pgg-default-user-id with more than one UID
Date: Sat, 04 Apr 2009 11:37:43 +0900	[thread overview]
Message-ID: <cbdad5bf-d02a-4bff-9adc-a4ef0ed13c79@broken.deisui.org> (raw)
In-Reply-To: <87myaxbrr1.fsf@sunoano.org> (Suno Ano's message of "Fri, 03 Apr 2009 18:56:34 +0200")

>>>>> In <87myaxbrr1.fsf@sunoano.org> 
>>>>>	Suno Ano <suno.ano@sunoano.org> wrote:

> Daiki, do you think you could provide an example for switching keys
> based on their key ID and using gnus-parameters? That would be awesome!

Here it is:

(add-hook 'message-setup-hook
	  (lambda ()
	    (if gnus-newsgroup-name
		(let ((signers (gnus-group-get-parameter
				gnus-newsgroup-name
				'mml2015-signers
				t)))
		  (if signers
		      (set (make-local-variable 'mml2015-signers)
			   signers))))))

Then, you will be able to set your key ID for a group with "G p" and
something like:

((timestamp 18902 50694)
 (mml2015-signers "9549F362"))

Where "9549F362" is my key ID.

Regards,
-- 
Daiki Ueno

  parent reply	other threads:[~2009-04-04  2:37 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.4214.1238356815.31690.info-gnus-english@gnu.org>
2009-03-29 20:27 ` Richard Riley
2009-04-02 17:23   ` Suno Ano
2009-04-03 11:22     ` Daiki Ueno
2009-04-03 16:56       ` Suno Ano
2009-04-03 17:05         ` thierry.volpiatto
2009-04-04  2:37         ` Daiki Ueno [this message]
     [not found]         ` <mailman.4591.1238812676.31690.info-gnus-english@gnu.org>
2009-04-04  6:31           ` Richard Riley
2009-04-04  8:13             ` Daiki Ueno
2009-04-04  9:53               ` Daiki Ueno
2009-04-03 17:21       ` Leo
     [not found]     ` <mailman.4527.1238757743.31690.info-gnus-english@gnu.org>
2009-04-03 11:32       ` Richard Riley
2009-04-03 11:54         ` Richard Riley
     [not found]   ` <mailman.4452.1238693022.31690.info-gnus-english@gnu.org>
2009-04-02 17:58     ` Richard Riley
2009-04-02 21:05       ` Suno Ano
2009-03-29 19:57 Suno Ano

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=cbdad5bf-d02a-4bff-9adc-a4ef0ed13c79@broken.deisui.org \
    --to=ueno@unixuser.org \
    --cc=info-gnus-english@gnu.org \
    --cc=suno.ano@sunoano.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).