Beginnings of new API currently implemented for Imap