[general] accounts = Main pythonfile=/etc/local-COMMON/offlineimap/offlineimap.py [Account Main] localrepository = Local remoterepository = Remote [Repository Local] type = Maildir localfolders = ~/Maildir [Repository Remote] type = IMAP preauthtunnel = ssh -C -q jonas@mail.jones.dk '/usr/local/bin/localimap' # Mimic dovecot Maildir setup: Add leading dot to all folders but INBOX nametrans = lambda foldername: re.sub('^\.INBOX$', '.', '.' + foldername) # Avoid Trash, Junk and other non-important folders folderfilter = lambda foldername: foldername not in imapnoise