Get body of last email in conversation


I would like to get only the latest body of email, because with mail.body I get the whole convesation. Is it possible to get it in easy way? or do I have to split like when I find “FROM”?


you can get this by using regex, check below

System.Text.RegularExpressions.Regex.IsMatch(“your Mail body”.ToLower,“(?i)(.|\n)+(?=from:(.|\n)+sent:(.|\n)+to:)(?-i)”)