I am using the below code to read an unread email.
In mail.fetch method , getting typ,data as a returned parameters and accessing the raw email with
"raw