X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/configs/blobdiff_plain/a52a2650aa43a27ea5dcd73a0e7aa0375233ef49..161c93e90668ee7ea7350e2bb914eff827d2f672:/offlineimap/.offlineimap.py?ds=sidebyside 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