Adding class for receiving and parsing email messages via imap