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

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

Re: A few questions on signing/encrypting emails


From: Leo
Subject: Re: A few questions on signing/encrypting emails
Date: Thu, 11 Jan 2007 09:15:27 +0000
User-agent: No Gnus v0.6, Emacs/22.0.92.2 (2007-01-10), Fedora 6 gnu/linux

* Daiki Ueno (2007-01-11 12:53 +0900) said:
>>>>>>  Leo <address@hidden> wrote:
>> >> When I set mml2015-signers, I was prompted for passphrase for each id
>> >> in the list. It looks like the email is being signed by all keys. Is
>> >> this supposed to happen? Can I choose which key to use?
>
>> Thank you. As I set mml2015-verbose to true, all keys will be selected
>> (marked) by default. How can I make only keys that matches the 'From'
>> header be selected by default?
>
> Can you show me the actual settings of mml2015-signers?  My guess is
> that, you have multiple keys with the same user-id which is in
> mml2015-signers?  In that case, you need to set key-id's instead of
> the user-id.

I have two keys with two different uids. I set mml2015-signers to
("address@hidden" "address@hidden").

>
> (setq user-id-to-key-id-alist
>       '(("address@hidden" "9283AA3F")))
>
> (add-hook 'message-send-hook
>         (lambda ()
>           (let ((entry (assoc (cadr (mail-extract-address-components
>                                      (message-field-value "from")))
>                               user-id-to-key-id-alist)))
>             (if entry
>                 (setq mml2015-signers (cdr entry))))))

Nice. 

-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)





reply via email to

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