projects
/
~bandali
/
configs
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bspwm and sxhkd config updates
[~bandali/configs]
/
offlineimap
/
.offlineimap.py
diff --git
a/offlineimap/.offlineimap.py
b/offlineimap/.offlineimap.py
index
23ba11c
..
3b89349
100644
(file)
--- a/
offlineimap/.offlineimap.py
+++ b/
offlineimap/.offlineimap.py
@@
-10,6
+10,15
@@
def mailpasswd(acct):
except subprocess.CalledProcessError:
return ""
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
def prime_gpg_agent():
ret = False
i = 1