Sync maildir and then run offlineimap.