As suggested, I applied some of Rosenfeld's key bindings to mutt, but ^p,
although it signs the body of the text, it does it with PGP 2.x by default,
and I can't see how to change this.  Also, I got hold of Golanski's
.mutt.pgp, and added a few to mine.  I added:

set pgp_sign_as="0x42337AE6"

so to make gpg's the default key to sign with.  I also made gpg the default
key:

set pgp_gpg=/usr/bin/gpg

set pgp_default_version=gpg

BTW, what's the meaning of:

unset pgp_retainable_sigs

(this one I have it commented #).

----- ~/.keybind -----
# Generic keybindings

macro   generic \e1     ":set pgp_default_version=gpg ?pgp_default_version\n"\ "Switch 
to GNU-PG"
macro   generic \e2     ":set pgp_default_version=pgp2 ?pgp_default_version\n"\ 
"Switch to PGP 2.*"
macro   generic \e5     ":set pgp_default_version=pgp5 ?pgp_default_version\n"\ 
"Switch to PGP 5.*"

# index, OpMain, MENU_MAIN

macro  pager   \Ck     ":set pipe_decode pgp_key_version=pgp2\n\e\ek:set 
pgp_key_version=pgp5\n\e\ek:set pgp_key_version=gpg\n\e\ek:set pgp_key_version=default 
nopipe_decode\n"\ "Extract PGP keys to PGP2, PGP 5, and GnuPG keyrings"

# pager, OpPager, MENU_PAGER

macro   pager   \e1     ":set pgp_default_version=gpg ?pgp_default_version\n"\ "switch 
to GNUPG"
macro   pager   \e2     ":set pgp_default_version=pgp2 ?pgp_default_version\n"\ 
"switch to PGP 2.*"
macro   pager   \e5     ":set pgp_default_version=pgp5 ?pgp_default_version\n"\ 
"switch to PGP 5.*"

# compose, OpCompose+OpGerneric, MENU_COMPOSE

bind    compose p       pgp-menu
macro   compose \Cp     "Fpgp +clearsig=on -fast\ny" \
                        # "PGP sign mail without MIME"
macro   compose S       "Fpgp +clearsig=on -fast\ny^T^Uapplication/pgp; format=text; 
x-action=sign\n" \
                        # "PGP sign mail with oldstyle MIME"

# pgp, OpPgp+OpGeneric, MENU_PGP

bind    pgp     \Cn     search-next
bind    pgp     v       view-name

TIA,

Horacio

Reply via email to