IMAP sync

Copy every folder and message from one IMAP mailbox to another, for a move between mail providers. Flags and dates are kept, folders are matched by role, and running it again only copies what is new.