[general]
pythonfile = ~/.offlineimap.py
accounts = Gmail, aminb
maxsyncaccounts = 3

[Account Gmail]
localrepository = GmailL
remoterepository = GmailR

[Account aminb]
localrepository = aminbL
remoterepository = aminbR

[Repository GmailL]
type = Maildir
localfolders = ~/Maildir/Gmail

[Repository GmailR]
type = IMAP
remotehost = imap.gmail.com
remoteusereval = mailuser("gmail")
remotepasseval = mailpasswd("gmail")
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
ssl = yes
folderfilter = lambda foldername: foldername not in '[Gmail]/All Mail'
maxconnections = 1
realdelete = no

[Repository aminbL]
type = Maildir
localfolders = ~/Maildir/aminb

[Repository aminbR]
type = IMAP
remotehost = mail.aminb.org
remoteusereval = mailuser("aminb")
remotepasseval = mailpasswd("aminb")
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
ssl = yes
folderfilter = lambda foldername: foldername not in 'dovecot.sieve'
maxconnections = 1
realdelete = no