Add static methods for sync to imap.