switch to gpg2 as default

This commit is contained in:
Luke
2018-02-13 13:00:48 -07:00
parent ac1f56dd18
commit a4dc0e041e
4 changed files with 5 additions and 10 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
pass=$(gpg -d -q ~/.config/mutt/credentials/$1.gpg)
pass=$(gpg2 -d -q ~/.config/mutt/credentials/$1.gpg)
echo set smtp_pass=\"$pass\"
echo set imap_pass=\"$pass\"

View File

@ -4,7 +4,7 @@ home = os.path.expanduser("~")
def mailpasswd(acct):
acct = os.path.basename(acct)
path = "%s/.config/mutt/credentials/%s.gpg" % (home,acct)
args = ["gpg", "--use-agent", "--quiet", "--batch", "-d", path]
args = ["gpg2", "--use-agent", "--quiet", "--batch", "-d", path]
try:
return subprocess.check_output(args).strip()
except subprocess.CalledProcessError: