i'm trying to use mutt 1.5 with gpg and multiple keys.
i added to my muttrc the gpg.rc file
i know i need to define pgp_sign_as for default key but what i want is
* a default key when signing
* a way to define a list of recipients for which i use a key, some
others a second key, others none, ...
* a way to choose key in live in mutt after composing. for now, calling
'p' and searching for a key seems to return nothing (alias 'a')
is it possible ? how ?
thanks a lot
Best regards,
Julien
> i know i need to define pgp_sign_as for default key but what i want is
> * a default key when signing
> * a way to define a list of recipients for which i use a key, some
> others a second key, others none, ...
Have you looked at crypt-hook in the muttrc(5) man page?
send-hook might also be useful for certain stuff.
--
Multi-lingual forum for Chinese and Japanese tea and teaware:
http://teadrunk.org/
thanks for the feedback Will.
i tried it but it doesn't do all i want but i'm not sure how hook
applies, mainly for a new mail (after writing mail at preview or just
when sending for example)
is there a way to confirm hooks which applied to a composed email ? and
when ?
Also after composing, in preview, i see
From: xxx
To: xxx
Cc:
Bcc:
Subject: xxx
Reply-To:
Fcc: =sent-mail
PGP: Sign (PGP/MIME)
sign as: <default>
And i never know which key is default. it would be great to be able to
check it here and display id/email used.
any hints how to do this ?
thanks
Best regards
> i tried it but it doesn't do all i want but i'm not sure how hook
> applies, mainly for a new mail (after writing mail at preview or just
> when sending for example)
What is the exact pgp hook you have in your .muttrc, and what exactly
are you trying to do?
> sign as: <default>
>
> And i never know which key is default. it would be great to be able to
> check it here and display id/email used.
> any hints how to do this ?
Well I am not an expert, but it looks like you can select (p)gp-menu (p
is the default binding), and 'a' (sign-(a)s) to change the key you're
sending as. From a quick test, it looks like if the email address you're
sending as doesn't match one of the identities, it will show the key-id
next to "sign as" in the compose menu (I'm guessing it may also do this
if more than one key has an identity matching that email address).
I *think* when you've correctly gotten mutt to choose a different key to
encrypt with, you will see the corresponding key-id there in the menu,
but I am not 100% sure of that.
Typing ":set ? pgp_sign_as" should tell you what key-id is the default,
at least for a given context.
http://wiki.mutt.org/?MuttGuide/UseGPG
w