-
-
Save anonymous/7e5af06945bd8d92470b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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