[general] metadata = ~/.offlineimap accounts = home #ui = quiet #ui = blinkenlights #ui = ttyui ui = basic [Account home] localrepository = home-local remoterepository = home-remote maxsyncaccounts = 3 maxconnections = 3 status_backend = sqlite postsynchook = notmuch new [Repository home-local] type = Maildir localfolders = ~/.mail/home sep = / nametrans = lambda folder: {'drafts': '[Gmail]/Drafts', 'sent': '[Gmail]/Sent Mail', 'important':'[Gmail]/Important', 'spam': '[Gmail]/Spam', 'starred': '[Gmail]/Starred', 'trash': '[Gmail]/Trash', 'archive': '[Gmail]/All Mail', }.get(folder, folder) [Repository home-remote] type = Gmail remoteuser = redacted remotepass = redacted auth_mechanisms = LOGIN realdelete = no sslcacertfile = /etc/ssl/certs/ca-certificates.crt folderfilter = lambda folder: folder in ['[Gmail]/All Mail', 'INBOX', '[Gmail]/Drafts', '[Gmail]/Sent Mail', ] nametrans = lambda folder: {'[Gmail]/Drafts': 'drafts', '[Gmail]/Sent Mail': 'sent', '[Gmail]/Starred': 'flagged', '[Gmail]/Important': 'important', '[Gmail]/Spam': 'spam', '[Gmail]/Trash': 'trash', '[Gmail]/All Mail': 'archive', }.get(folder, folder)