From 51547bf28a11c31c1f2747f437eb3a0899a135f1 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sat, 21 Feb 2015 22:43:08 -0500 Subject: [offlineimap] update config --- offlineimap/.offlineimap.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'offlineimap/.offlineimap.py') diff --git a/offlineimap/.offlineimap.py b/offlineimap/.offlineimap.py index 23ba11c..3b89349 100644 --- a/offlineimap/.offlineimap.py +++ b/offlineimap/.offlineimap.py @@ -10,6 +10,15 @@ def mailpasswd(acct): except subprocess.CalledProcessError: return "" +def mailuser(acct): + acct = os.path.basename(acct) + path = "/home/amin/.passwd/%s" % acct + args = ["cat", path] + try: + return subprocess.check_output(args).strip() + except subprocess.CalledProcessError: + return "" + def prime_gpg_agent(): ret = False i = 1 -- cgit v1.2.3-83-g751a