IMAP4-based sync