diff options
author | 2015-02-21 22:43:08 -0500 | |
---|---|---|
committer | 2015-02-21 22:43:08 -0500 | |
commit | 51547bf28a11c31c1f2747f437eb3a0899a135f1 (patch) | |
tree | 7143534da594460a36485104c3a7950aab245f57 /offlineimap/.offlineimap.py | |
parent | 407bc1d34845ef480281417869359f184f7bdc33 (diff) | |
download | configs-51547bf28a11c31c1f2747f437eb3a0899a135f1.tar.gz configs-51547bf28a11c31c1f2747f437eb3a0899a135f1.tar.xz configs-51547bf28a11c31c1f2747f437eb3a0899a135f1.zip |
[offlineimap] update config
Diffstat (limited to 'offlineimap/.offlineimap.py')
-rw-r--r-- | offlineimap/.offlineimap.py | 9 |
1 files changed, 9 insertions, 0 deletions
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 |