Added MIME to mail processing