summaryrefslogtreecommitdiff
path: root/.mutt/offlineimap.py
diff options
context:
space:
mode:
Diffstat (limited to '.mutt/offlineimap.py')
-rw-r--r--.mutt/offlineimap.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/.mutt/offlineimap.py b/.mutt/offlineimap.py
new file mode 100644
index 0000000..f84b6bc
--- /dev/null
+++ b/.mutt/offlineimap.py
@@ -0,0 +1,5 @@
+#! /usr/bin/env python2
+from subprocess import check_output
+
+def get_password(account):
+ return check_output("pass " + account, shell=True).splitlines()[0]