Add pgp to neomutt

This commit is contained in:
Nicolas Duhamel 2018-10-19 21:36:22 +02:00
parent 60a502d2c8
commit ea72955456
4 changed files with 20 additions and 1 deletions

View File

@ -21,3 +21,5 @@ set record = "+Sent"
set from = "nicolas@jombi.fr" set from = "nicolas@jombi.fr"
set sendmail = "/usr/bin/msmtp -C $XDG_CONFIG_HOME/msmtp/msmtprc -a jombi" set sendmail = "/usr/bin/msmtp -C $XDG_CONFIG_HOME/msmtp/msmtprc -a jombi"
set sendmail_wait = 0 set sendmail_wait = 0
set pgp_default_key =0xB7DF154B

View File

@ -72,7 +72,7 @@ bind index G last-entry
macro index gf <change-folder>? macro index gf <change-folder>?
macro index gi <change-folder><kill-line>=INBOX<Enter> macro index gi <change-folder><kill-line>=INBOX<Enter>
bind index J next-entry bind index j next-entry
bind index k previous-entry bind index k previous-entry
bind index cc copy-message bind index cc copy-message

View File

@ -15,6 +15,7 @@ source $XDG_CONFIG_HOME/neomutt/index
source $XDG_CONFIG_HOME/neomutt/pager source $XDG_CONFIG_HOME/neomutt/pager
source $XDG_CONFIG_HOME/neomutt/compose source $XDG_CONFIG_HOME/neomutt/compose
source $XDG_CONFIG_HOME/neomutt/keybinding source $XDG_CONFIG_HOME/neomutt/keybinding
source $XDG_CONFIG_HOME/neomutt/pgp
#Basic options -------------------------------------- #Basic options --------------------------------------
unset help unset help

View File

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