summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/imappwd.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/bin/imappwd.py b/bin/imappwd.py
deleted file mode 100755
index d630b4f..0000000
--- a/bin/imappwd.py
+++ /dev/null
@@ -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 ""