summaryrefslogtreecommitdiff
path: root/base/offlineimap
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2018-04-12 16:07:07 -0700
committerJesse Morgan <jesse@jesterpm.net>2018-04-12 16:07:07 -0700
commit20a4f6a133c5fbd07a802ca871ff22cfd59a29cc (patch)
treefd62ba47338614cb911e47c3415e1e45635249a2 /base/offlineimap
parentbea366fcdfa72910fde029205b677d28646e5dc4 (diff)
Update mail configs
Diffstat (limited to 'base/offlineimap')
-rw-r--r--base/offlineimap/.nolink0
-rw-r--r--base/offlineimap/helper.py26
2 files changed, 0 insertions, 26 deletions
diff --git a/base/offlineimap/.nolink b/base/offlineimap/.nolink
deleted file mode 100644
index e69de29..0000000
--- a/base/offlineimap/.nolink
+++ /dev/null
diff --git a/base/offlineimap/helper.py b/base/offlineimap/helper.py
deleted file mode 100644
index 9cb94d8..0000000
--- a/base/offlineimap/helper.py
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/python
-
-import os, subprocess,sys
-
-
-def mailpasswd(file):
- path = os.getenv("HOME") + "/.offlineimap/" + file + ".gpg"
- args = ["gpg", "--use-agent", "--quiet", "--batch", "-d", path]
- try:
- return subprocess.check_output(args).strip()
- except subprocess.CalledProcessError:
- return ""
-
-def prime_gpg_agent():
- ret = False
- i = 1
- while not ret:
- ret = (mailpasswd("prime") == "prime")
- if i > 2:
- from offlineimap.ui import getglobalui
- sys.stderr.write("Error reading in passwords. Terminating.\n")
- getglobalui().terminate()
- i += 1
- return ret
-
-prime_gpg_agent()