Updating offlineimaprc for Gmail

master
Dustin Swan 10 years ago
parent a7fbe33488
commit 4c06949cb4

@ -6,11 +6,10 @@ pythonfile = ~/dotfiles/offlineimap.py
[Account IOCOM] [Account IOCOM]
localrepository = IOCOMLocal localrepository = IOCOMLocal
remoterepository = IOCOMRemote remoterepository = IOCOMRemote
status_backend = sqlite
[Repository IOCOMLocal] [Repository IOCOMLocal]
type = Maildir type = Maildir
localfolders = ~/.mail/iocom localfolders = ~/Mail/IOCOM
[Repository IOCOMRemote] [Repository IOCOMRemote]
type = IMAP type = IMAP
@ -23,29 +22,15 @@ realdelete = no
[Account Gmail] [Account Gmail]
localrepository = GmailLocal localrepository = GmailLocal
remoterepository = GmailRemote remoterepository = GmailRemote
status_backend = sqlite
[Repository GmailLocal] [Repository GmailLocal]
type = Maildir type = Maildir
localfolders = ~/.mail/gmail localfolders = ~/Mail/Gmail
nametrans = lambda folder: re.sub('spam', '[Gmail].Spam',
re.sub('drafts', '[Gmail].Drafts',
re.sub('sent', '[Gmail].Sent Mail',
re.sub('starred', '[Gmail].Starred',
re.sub('trash', '[Gmail].Trash',
re.sub('important', '[Gmail].Important',
re.sub('archive', '[Gmail].All Mail', folder)))))))
[Repository GmailRemote] [Repository GmailRemote]
type = Gmail type = Gmail
remoteuser = dustinswan@gmail.com remoteuser = dustinswan@gmail.com
remotepasseval = decrypt_password(".gmail-password.gpg") remotepasseval = decrypt_password(".gmail-password.gpg")
realdelete = no realdelete = no
sslcacertfile = /usr/local/opt/curl-ca-bundle/share/ca-bundle.crt cert_fingerprint=fb28fb2d7a043b18d051bd0cfddf22bfc14012fc
nametrans = lambda folder: re.sub('.*Spam$', 'spam', ssl = yes
re.sub('.*Drafts$', 'drafts',
re.sub('.*Sent Mail$', 'sent',
re.sub('.*Starred$', 'starred',
re.sub('.*Trash$', 'trash',
re.sub('.*Important$', 'important',
re.sub('.*All Mail$', 'archive', folder)))))))

Loading…
Cancel
Save