@mntmn ah yes, I did the same about a year ago. after being told about about mbsync during a short stay at the CCC Bremen.
For me, mbsync has also proven to be more stable and reliable than offlineimap. That is in addition to being a lot faster (about factor 5). Great tool.