From 1f7ed635e21a70b1f1a6807557cf31f5612531af Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Fri, 11 Dec 2015 22:40:01 +0000 Subject: Add openmailbox --- .offlineimap/offlineimaprc | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) (limited to '.offlineimap/offlineimaprc') diff --git a/.offlineimap/offlineimaprc b/.offlineimap/offlineimaprc index 96c13c5..87b517a 100644 --- a/.offlineimap/offlineimaprc +++ b/.offlineimap/offlineimaprc @@ -1,7 +1,7 @@ [general] ui = ttyui pythonfile = /home/urbain/.offlineimap.py -accounts = Imperial, Main, Gmail +accounts = Imperial, Main, Gmail, openmailbox maxsyncaccounts = 4 [Account Imperial] @@ -43,8 +43,8 @@ remoteuser = urbain.p.vaes remotepasseval = mailpasswd("main") realdelete = no maxconnections = 3 -nametrans = lambda folder : {'INBOX' : 'Main', '[Gmail]/Sent Mail' : 'Sent', '[Gmail]/Drafts' : 'Drafts'}.get(folder, folder) -folderfilter = lambda folder: folder in ['INBOX', '[Gmail]/Sent Mail', '[Gmail]/Drafts'] +nametrans = lambda folder : {'INBOX' : 'Main', '[Gmail]/Sent Mail' : 'Sent', '[Gmail]/Drafts' : 'Drafts', '[Gmail]/Bin' : 'Bin'}.get(folder, folder) +folderfilter = lambda folder: folder in ['INBOX', '[Gmail]/Sent Mail', '[Gmail]/Drafts', '[Gmail]/Bin'] sslcacertfile = /etc/ssl/certs/ca-certificates.crt [Account Gmail] @@ -68,6 +68,28 @@ nametrans = lambda folder: {'INBOX' : 'Gmail'}.get(folder, folder) folderfilter = lambda folder: folder in ['INBOX'] sslcacertfile = /etc/ssl/certs/ca-certificates.crt +[Account openmailbox] +localrepository = openmailbox-Local +remoterepository = openmailbox-Remote +autorefresh = 10 + +[Repository openmailbox-Local] +type = Maildir +localfolders = ~/.mail/openmailbox +status_backend = sqlite +nametrans = lambda folder : {'Free' : 'INBOX'}.get(folder, folder) + + +[Repository openmailbox-Remote] +type = IMAP +remotehost = imap.openmailbox.org +remoteuser = urbain.p.vaes@openmailbox.org +remotepasseval = mailpasswd("openmailbox") +nametrans = lambda folder: {'INBOX' : 'Free'}.get(folder, folder) +folderfilter = lambda folder: folder in ['INBOX'] +sslcacertfile = /etc/ssl/certs/ca-certificates.crt +realdelete = no + [mbnames] enabled = yes filename = ~/.mutt/mailboxes -- cgit v1.2.3