i am developing an application which reads .eml files and extract their data and does some processes with these data with c#
i am using MimeKit package. how can I differentiate between sent or received email?
here is part of my code:
private static List<List<string>> GetNextMail(string emlFile, int mailNumber)
{
try
{
// eml file is the path of eml
var mimeMessage = MimeMessage.Load(emlFile);
return GetNextMail(mimeMessage,mailNumber);
}
catch (Exception ex)
{
return null;
}
}
how can I use mimeMessage
object for differentiating between sent or receive emails?