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