aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2015-09-06 16:34:37 +0200
committerDavid Runge <dave@sleepmap.de>2015-09-06 16:34:37 +0200
commit26b4e0787f66b375ea979be96d12edc651e7b265 (patch)
treefaf1dcaf692f79b91914309f797d59206a9baaca
parent28891bbf79237d3b95a131651be9e12519f23660 (diff)
downloaddotfiles-26b4e0787f66b375ea979be96d12edc651e7b265.tar.gz
dotfiles-26b4e0787f66b375ea979be96d12edc651e7b265.tar.bz2
dotfiles-26b4e0787f66b375ea979be96d12edc651e7b265.tar.xz
dotfiles-26b4e0787f66b375ea979be96d12edc651e7b265.zip
bin/pass2offlineimap: Adding password handling through pass for offlineimap
-rw-r--r--bin/pass2offlineimap5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/pass2offlineimap b/bin/pass2offlineimap
new file mode 100644
index 0000000..72f5829
--- /dev/null
+++ b/bin/pass2offlineimap
@@ -0,0 +1,5 @@
+#! /usr/bin/env python2
+from subprocess import check_output
+
+def get_pass(account):
+ return check_output("pass Mail/" + account, shell=True).rstrip()