diff options
| -rw-r--r-- | offlineimap/.offlineimap.py | 5 | ||||
| -rw-r--r-- | offlineimap/.offlineimaprc | 45 |
2 files changed, 50 insertions, 0 deletions
diff --git a/offlineimap/.offlineimap.py b/offlineimap/.offlineimap.py new file mode 100644 index 0000000..d733bdb --- /dev/null +++ b/offlineimap/.offlineimap.py @@ -0,0 +1,5 @@ +from subprocess import check_output + + +def get_pass(name): + return check_output(["pass", "show", name]).split("\n")[0].strip() diff --git a/offlineimap/.offlineimaprc b/offlineimap/.offlineimaprc new file mode 100644 index 0000000..0a057bb --- /dev/null +++ b/offlineimap/.offlineimaprc @@ -0,0 +1,45 @@ +[general] + +metadata = ~/.offlineimap +accounts = Gmail +maxsyncaccounts = 3 +ui = ttyui +socktimeout = 60 +fsync = false +pythonfile = ~/.offlineimap.py + +[mbnames] + +#enabled = yes +#filename = ~/.mutt/mailboxes +#header = "mailboxes " +#peritem = "+%(accountname)s/%(foldername)s" +#sep = " " +#footer = "\n" + +[Account Gmail] + +localrepository = LocalGmail +remoterepository = RemoteGmail +autorefresh = 5 +quick = 3 +postsynchook = notmuch new +status_backend = sqlite +synclabels = yes +labelsheader = X-Keywords + +[Repository LocalGmail] + +type = GmailMaildir +localfolders = /media/data/mail/Gmail + +[Repository RemoteGmail] + +type = Gmail +remoteuser = thibaut.horel@gmail.com +remotepasseval = get_pass("email/gmail") +maxconnections = 3 +sslcacertfile = /etc/ssl/certs/ca-certificates.crt +folderfilter = lambda folder: folder not in ['[Gmail]/All Mail'] +idlefolders = ['INBOX', 'famille', '[Gmail]/Sent Mail'] +auth_mechanisms = LOGIN |
