Skip to content

Instantly share code, notes, and snippets.

Created Oct 21, 2012
What would you like to do?
$ cat .offlineimaprc
accounts = rmo
fsync = False
maxsyncaccounts = 3
[Account rmo]
localrepository = rmo-local
remoterepository = rmo-remote
status_backend = sqlite
postsynchook = notmuch new
[Repository rmo-local]
type = Maildir
localfolders = ~/Mail/rmo
nametrans = lambda folder: {'drafts': '[Gmail]/Drafts',
'sent': '[Gmail]/Sent Mail',
'flagged': '[Gmail]/Starred',
'trash': '[Gmail]/Trash',
'archive': '[Gmail]/All Mail',
}.get(folder, folder)
[Repository rmo-remote]
maxconnections = 3
type = Gmail
#cert_fingerprint = 6d1b5b5ee0180ab493b71d3b94534b5ab937d042
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
remoteuser =
remotepasseval = keyring.get_password('gmail', '')
realdelete = no
nametrans = lambda folder: {'[Gmail]/Drafts': 'drafts',
'[Gmail]/Sent Mail': 'sent',
'[Gmail]/Starred': 'flagged',
'[Gmail]/Trash': 'trash',
'[Gmail]/All Mail': 'archive',
}.get(folder, folder)
folderfilter = lambda folder: folder not in ['[Gmail]/Trash',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment