Skip to content

Instantly share code, notes, and snippets.

Created October 21, 2012 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/7e5af06945bd8d92470b to your computer and use it in GitHub Desktop.
Save anonymous/7e5af06945bd8d92470b to your computer and use it in GitHub Desktop.
$ cat .offlineimaprc
[general]
ui = TTY.TTYUI
accounts = rmo
pythonfile=~/.mutt/scripts/offlineimap.py
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 = rafal@ochmanski.pl
remotepasseval = keyring.get_password('gmail', 'rafal@ochmanski.pl')
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',
'[Gmail]/Important',
'[Gmail]/Spam',
'',
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment