diff options
Diffstat (limited to 'base/offlineimap')
-rw-r--r-- | base/offlineimap/.nolink | 0 | ||||
-rw-r--r-- | base/offlineimap/helper.py | 26 |
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() |