Refactor imap into mail source
Creations options for mail sink