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