Browse Source

pycucks btfo

tags/v3.1
Luke Smith 5 years ago
parent
commit
53ea8511b7
No known key found for this signature in database GPG Key ID: 4C50B54A911F6252
1 changed files with 0 additions and 16 deletions
  1. +0
    -16
      bin/imappwd.py

+ 0
- 16
bin/imappwd.py View File

@@ -1,16 +0,0 @@
import os.path
import subprocess
import distutils.spawn
home = os.path.expanduser("~")
def mailpasswd(acct):
acct = os.path.basename(acct)
path = "%s/.local/share/muttwizard/%s.gpg" % (home,acct)
if distutils.spawn.find_executable("gpg"):
GPG="gpg"
else:
GPG="gpg2"
args = [GPG, "--use-agent", "--quiet", "--batch", "-d", path]
try:
return subprocess.check_output(args).strip().decode('UTF-8')
except subprocess.CalledProcessError:
return ""

Loading…
Cancel
Save