diff options
Diffstat (limited to 'config')
-rwxr-xr-x | config/offlineimap/config | 3 | ||||
-rw-r--r-- | config/offlineimap/plugin.py | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/config/offlineimap/config b/config/offlineimap/config index 6853963..d3bc247 100755 --- a/config/offlineimap/config +++ b/config/offlineimap/config @@ -2,11 +2,13 @@ [general] accounts = email maxsyncaccounts = 4 +pythonfile = ~/.config/offlineimap/plugin.py [Repository email-remote] type = IMAP remotehost = imap.seznam.cz remoteuser = cynerd@email.cz +remotepasseval = get_pass("cynerd@email.cz") ssl = yes sslcacertfile = /etc/ssl/certs/ca-certificates.crt @@ -17,6 +19,5 @@ localfolders = ~/.mail/email [Account email] localrepository = email-local remoterepository = email-remote -autorefresh = 1 postsynchook = ~/.local/sbin/newmail-notify 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] |