Created
February 10, 2014 19:03
-
-
Save hub-cap/8922074 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
[general] | |
pythonfile = ~/.offlineimap.py | |
accounts = gmail | |
[Account gmail] | |
localrepository = gmail-local | |
remoterepository = gmail-remote | |
status_backend = sqlite | |
[Repository gmail-local] | |
type = IMAP | |
preauthtunnel = [email protected] /usr/lib/dovecot/imap -o mail_location=maildir:$HOME/Mail/[email protected] | |
holdconnectionopen = yes | |
nametrans = lambda folder: {'drafts': '[Gmail]/Drafts', | |
'sent': '[Gmail]/Sent Mail', | |
'flagged': '[Gmail]/Starred', | |
'trash': '[Gmail]/Trash', | |
}.get(folder, folder) | |
folderfilter = lambda foldername: foldername not in '[Gmail]/All Mail' | |
[Repository gmail-remote] | |
type = IMAP | |
remotehost = imap.gmail.com | |
remoteport = 993 | |
maxconnections = 4 | |
ssl = yes | |
sslcacertfile = /etc/ssl/certs/ca-certificates.crt | |
remoteusereval = get_user_emacs("imap.gmail.com", "993") | |
remotepasseval = get_password_emacs("imap.gmail.com", "993") | |
nametrans = lambda folder: {'[Gmail]/Drafts': 'drafts', | |
'[Gmail]/Sent Mail': 'sent', | |
'[Gmail]/Starred': 'flagged', | |
'[Gmail]/Trash': 'trash', | |
}.get(folder, folder) | |
folderfilter = lambda folder: folder not in ['[Gmail]/Trash', | |
'[Gmail]/Important', | |
'[Gmail]/Spam', | |
'[Gmail]/All Mail', | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment