info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pgg-default-user-id with more than one UID


From: Daiki Ueno
Subject: Re: pgg-default-user-id with more than one UID
Date: Sat, 04 Apr 2009 11:37:43 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]