diff --git a/user/neomutt/.config/neomutt/accounts b/user/neomutt/.config/neomutt/accounts index 125f08e..e8859f0 100644 --- a/user/neomutt/.config/neomutt/accounts +++ b/user/neomutt/.config/neomutt/accounts @@ -21,3 +21,5 @@ set record = "+Sent" set from = "nicolas@jombi.fr" set sendmail = "/usr/bin/msmtp -C $XDG_CONFIG_HOME/msmtp/msmtprc -a jombi" set sendmail_wait = 0 + +set pgp_default_key =0xB7DF154B diff --git a/user/neomutt/.config/neomutt/keybinding b/user/neomutt/.config/neomutt/keybinding index d810ed8..5f9a59f 100644 --- a/user/neomutt/.config/neomutt/keybinding +++ b/user/neomutt/.config/neomutt/keybinding @@ -72,7 +72,7 @@ bind index G last-entry macro index gf ? macro index gi =INBOX -bind index J next-entry +bind index j next-entry bind index k previous-entry bind index cc copy-message diff --git a/user/neomutt/.config/neomutt/neomuttrc b/user/neomutt/.config/neomutt/neomuttrc index 371f7c3..c89231a 100644 --- a/user/neomutt/.config/neomutt/neomuttrc +++ b/user/neomutt/.config/neomutt/neomuttrc @@ -15,6 +15,7 @@ source $XDG_CONFIG_HOME/neomutt/index source $XDG_CONFIG_HOME/neomutt/pager source $XDG_CONFIG_HOME/neomutt/compose source $XDG_CONFIG_HOME/neomutt/keybinding +source $XDG_CONFIG_HOME/neomutt/pgp #Basic options -------------------------------------- unset help diff --git a/user/neomutt/.config/neomutt/pgp b/user/neomutt/.config/neomutt/pgp new file mode 100644 index 0000000..4cd096a --- /dev/null +++ b/user/neomutt/.config/neomutt/pgp @@ -0,0 +1,16 @@ +set crypt_use_gpgme = yes + +set crypt_replysign = yes +set crypt_replyencrypt = yes +set crypt_replysignencrypted = yes + +set crypt_verify_sig = yes + +set pgp_decode_command="gpg2 %?p?--passphrase- 0? --no-verbose --batch --output - %f" +set pgp_verify_command="gpg2 --no-verbose --batch --output - --verify %s %f" +set pgp_decrypt_command="gpg2 --passphrase- 0 --no-verbose --batch --output - %f" +set pgp_sign_command="gpg2 --no-verbose --batch --output - --passphrase- 0 --armor --detach-sign --textmode %?a?-u %a? %f" +set pgp_clearsign_command="gpg2 --no-verbose --batch --output - --passphrase- 0 --armor --textmode --clearsign %?a?-u %a? %f" + +#set pgp_encrypt_only_command="/usr/lib/neomutt/pgpewrap gpg2 --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust --encrypt-to VOTRE_ID -- -r %r -- %f" +#set pgp_encrypt_sign_command="/usr/lib/neomutt/pgpewrap gpg2 --passphrase- 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust --encrypt-to VOTRE_ID -- -r %r -- %f"