diff options
author | neodarz <neodarz@neodarz.net> | 2018-07-06 22:49:28 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-07-06 22:49:28 +0200 |
commit | d1b3328f428162cbbae759a62297a91ea3280ce6 (patch) | |
tree | 18a7f40369c5193c0fba5125267348c0e7f5c017 /offlineimap | |
parent | daadebb7d364f958e7089579727581eabdbe24f8 (diff) | |
download | dotfiles_ascii-d1b3328f428162cbbae759a62297a91ea3280ce6.tar.xz dotfiles_ascii-d1b3328f428162cbbae759a62297a91ea3280ce6.zip |
Add offlineimap
Diffstat (limited to 'offlineimap')
-rw-r--r-- | offlineimap/.offlineimap.py | 6 | ||||
-rw-r--r-- | offlineimap/.offlineimaprc | 38 |
2 files changed, 44 insertions, 0 deletions
diff --git a/offlineimap/.offlineimap.py b/offlineimap/.offlineimap.py new file mode 100644 index 0000000..8309482 --- /dev/null +++ b/offlineimap/.offlineimap.py @@ -0,0 +1,6 @@ +#! /usr/bin/env python2 +from subprocess import check_output + + +def get_pass(account): + return check_output("pass Mail/" + account, shell=True).splitlines()[0] diff --git a/offlineimap/.offlineimaprc b/offlineimap/.offlineimaprc new file mode 100644 index 0000000..f0db668 --- /dev/null +++ b/offlineimap/.offlineimaprc @@ -0,0 +1,38 @@ +# Sample minimal config file. Copy this to ~/.offlineimaprc and edit to +# get started fast. + +[general] +accounts = neodarz, corentin.breton +pythonfile = ~/.offlineimap.py + +[Account neodarz] +localrepository = neodarz-local +remoterepository = neodarz-remote + +[Repository neodarz-local] +type = Maildir +localfolders = ~/Mail/neodarz@neodarz.net + +[Repository neodarz-remote] +type = IMAP +remotehost = mail.neodarz.net +remoteuser = neodarz@neodarz.net +remotepasseval = get_pass("neodarz@neodarz.net") +ssl = yes +sslcacertfile = /etc/ssl/certs/ca-certificates.crt + +[Account corentin.breton] +localrepository = corentin.breton-local +remoterepository = corentin.breton-remote + +[Repository corentin.breton-local] +type = Maildir +localfolders = ~/Mail/corentin.breton@neodarz.net + +[Repository corentin.breton-remote] +type = IMAP +remotehost = mail.neodarz.net +remoteuser = corentin.breton@neodarz.net +remotepasseval = get_pass("corentin.breton@neodarz.net") +ssl = yes +sslcacertfile = /etc/ssl/certs/ca-certificates.crt |