User Tools

Site Tools


email:offlineimap

Offlineimap config file for three accounts:

[general]
accounts = Work, Personal, Gmail
 
## Accounts
[Account Work]
localrepository = Local
remoterepository = Remote
 
[Account Personal]
localrepository = Personal-Local
remoterepository = Personal-Remote
 
[Account Gmail]
localrepository = Gmail-Local
remoterepository = Gmail-Remote
 
## Local Repositories
[Repository Local]
type = Maildir
localfolders = ~/Mail
 
[Repository Personal-Local]
type = Maildir
localfolders = ~/Mail/Personal
 
[Repository Gmail-Local]
type = Maildir
localfolders = ~/Mail/gmail
 
## Remote Repositories
[Repository Remote]
type = IMAP
remotehost = exchange.host
remoteport = 993
ssl = yes
remoteuser = ad\username
remotepass = password_here
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
folderfilter = lambda foldername: foldername not in ['Junk E-Mail', 'Notes', 'Drafts', 'Sent Items', 'Deleted Items', 'Calendar', 'Contacts', 'Journal', 'Tasks', 'Outbox']
 
[Repository Personal-Remote]
type = IMAP
remotehost = server.host
remoteport = 993
ssl = yes
remoteuser = Personal@server
remotepass = password_here
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
folderfilter = lambda foldername: foldername not in ['INBOX.Archive', 'INBOX.Junk', 'INBOX.spam', 'INBOX.Spam', 'INBOX.Trash', 'INBOX.Drafts', 'INBOX.Sent']
 
[Repository gmail-Remote]
type = Gmail
remoteuser = me@gmail
remotepass = password_here (app password)
realdelete = no
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
folderfilter = lambda folder: folder == 'INBOX'
email/offlineimap.txt · Last modified: 2015/12/09 14:15 by seanburns