Added initial implementation of MailStream