aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@debian.org>2012-10-01 10:51:43 +0100
committerRyan Kavanagh <rak@debian.org>2012-10-01 10:51:43 +0100
commit58741eee068a848061e4438cac2bc1cd3bfbf891 (patch)
treee12adbb58c69038dc3dcc6e76f69f7d75d308642
parentProgrammatically decide on the version of mycmp to use based on offlineimap._... (diff)
Substitute in gpg binary name in mutt config
-rw-r--r--.mutt/gpg.rc26
-rwxr-xr-xMakefile2
2 files changed, 15 insertions, 13 deletions
diff --git a/.mutt/gpg.rc b/.mutt/gpg.rc
index d79487d..e6f728e 100644
--- a/.mutt/gpg.rc
+++ b/.mutt/gpg.rc
@@ -1,19 +1,19 @@
-set pgp_decode_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
-set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f"
-set pgp_decrypt_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
-set pgp_sign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f"
-set pgp_clearsign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f"
-set pgp_encrypt_only_command="/usr/lib/mutt/pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
-set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap gpg %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
-set pgp_import_command="gpg --no-verbose --import %f"
-set pgp_export_command="gpg --no-verbose --export --armor %r"
-set pgp_verify_key_command="gpg --verbose --batch --fingerprint --check-sigs %r"
-set pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-colons --list-keys %r"
-set pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-colons --list-secret-keys %r"
+set pgp_decode_command="GPG_BINARY --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
+set pgp_verify_command="GPG_BINARY --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f"
+set pgp_decrypt_command="GPG_BINARY --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
+set pgp_sign_command="GPG_BINARY --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f"
+set pgp_clearsign_command="GPG_BINARY --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f"
+set pgp_encrypt_only_command="/usr/lib/mutt/pgpewrap GPG_BINARY --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
+set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap GPG_BINARY %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
+set pgp_import_command="GPG_BINARY --no-verbose --import %f"
+set pgp_export_command="GPG_BINARY --no-verbose --export --armor %r"
+set pgp_verify_key_command="GPG_BINARY --verbose --batch --fingerprint --check-sigs %r"
+set pgp_list_pubring_command="GPG_BINARY --no-verbose --batch --quiet --with-colons --list-keys %r"
+set pgp_list_secring_command="GPG_BINARY --no-verbose --batch --quiet --with-colons --list-secret-keys %r"
set pgp_autosign=yes
set pgp_sign_as=0x4A11C97A
set pgp_replyencrypt=yes
set pgp_timeout=1800
-set pgp_good_sign="^gpg: Good signature from"
+set pgp_good_sign="^GPG_BINARY: Good signature from"
set pgp_use_gpg_agent = yes
set pgp_auto_decode = no
diff --git a/Makefile b/Makefile
index be998a6..1e41748 100755
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ LOCAL_FILES = \
.imapfilter/config.lua \
.msmtprc \
.mutt/accounts.rc \
+ .mutt/gpg.rc \
.mutt/score.rc \
.muttrc \
.netrc \
@@ -84,6 +85,7 @@ VARS_.gitconfig = MSMTP_PATH
VARS_.imapfilter/config.lua = LOCAL_PASS PM_EMAIL IMAPFILTER_GMAIL_SERVER GMAIL_PASS
VARS_.msmtprc = GMAIL_PASS QUEENSU_PASS LOCALHOST MCGSOCS_PASS MCGILL_PASS SSL_CERTS
VARS_.mutt/accounts.rc = LOCAL_PASS GMAIL_PASS QUEENSU_PASS MSMTP_PATH MCGILL_PASS
+VARS_.mutt/gpg.rc = GPG_BINARY
VARS_.mutt/score.rc = MUTT_10_SCORE MUTT_20_SCORE
VARS_.muttrc = MSMTP_PATH
VARS_.netrc = LOCAL_PASS GMAIL_PASS