Return MailAPI as module value for main-frame-setup