Re: How to activate a given GPG key through a macro...
- To: mutt-users@xxxxxxxx
- Subject: Re: How to activate a given GPG key through a macro...
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Sun, 23 Sep 2007 16:57:59 -0500
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date:from:to:subject:message-id:references:mime-version:content-type:in-reply-to; q=dns/txt; s=default; bh=2abGK2u5fJdduPHZIRQkZDGZnGI=; b=fEOnA53jr1kZauX6F1kNDuv1p14V2J8m+uRf1wVzu5RpKdBy6qPViuHCYY+aqpJhJJmK2ZPMLISvY8O1lkLxBUgCxAOC55KtOPANe76hS0VUHJSmUf2md218gc7pJNoWf2S2M9B7Q6Rzt11iB2EnwThzqnQlA6rt8TVaBBrwDBQ=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=e8xbAR/hEmh5K7MrSimoCalJRSk05IYhghpygM5UEm4RBQUHDphz2UbhvxAwLgVxQ9Xpdgffd/fhp8RSP5xJDjsbjd0JD6YeYUI9BiqvWXwrD9NA9Qnm1IsfxyB/bg64BY9U04QnVwokAKtxlwZfIO2xEXLmOPwhutH5lvfpGw8=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent;
- In-reply-to: <523929.33523.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- References: <523929.33523.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.16 (2007-09-09)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday, September 23 at 10:41 PM, quoth P.M.:
>I have a few gpg keys corresponding to a few different
>email addresses. When sending out mail within Mutt, I
>choose which address to make active through a macro
>key. So I am wondering how can I also include a
>command within each macro that activates the gpg key
>relative to that email address.
>
>This way, I would just assign a variable to the
>various pgp entries in my .muttrc, for instance:
>
>set pgp_sign_as=$UID
>set pgp --encryption-to=$UID
>and so forth....
>
>and then assign the value of $UID each time I need to
>switch through a single command (added to the macro
>sequence activating a particular address), eg:
>
>set UID=0xD214....
>
>The problem is, I do not know how to do this properly
>within Mutt. How do I do it???
There are several ways to do it. You could include the command to
change pgp_sign_as in the macro that you use to change your return
address, or you could set it in send-hooks. Depends on which seems
more elegant to you.
>Also, is it necessary to run the command, 'pgp
>--local-user <key>' each time I switch to a different
>gpg key, or the abovementioned setup will suffice?
No, but you need to have the sign-as included in your pgp_*_command
settings. For example, my pgp_encrypt_sign_command includes:
%?a?-u %a?
What that does is makes sure that my gpg is told to sign with whatever
key I have set as pgp_sign_as.
~Kyle
- --
We must not confuse dissent with disloyalty. When the loyal opposition
dies, I think the soul of America dies with it.
-- Edward R. Murrow
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iD8DBQFG9uFnBkIOoMqOI14RAnuoAJ9KPWfdNRHRmppudvze7acsz52tUQCfRWes
Dz0QdSBDl6gvmyk9JyKBZWI=
=xJao
-----END PGP SIGNATURE-----