Greetings, I am using the following method to fetch all the details from a mail after reading from a mailbox:
foreach (ExchangeMessageInfo msgInfo in messages)
{
//Extract each email
EmailObjectModel data = new EmailObjectModel();
data.MessageInfo = msgInfo;
data.From = msgInfo.From.Address.ToString();
data.To = msgInfo.To.Select(a => a.Address).ToList();
//To handle subject length issue
data.Subject = msgInfo.Subject.Substring(0, msgInfo.Subject.Length > 255 ? 255 : msgInfo.Subject.Length);
//BCC coming empty even though if it isn't
data.BCC = Helper.ConcatListToString(msgInfo.Bcc.Select(a => a.Address).ToList());
data.Mailbox = mailbox;
data.ReceivedDate = msgInfo.InternalDate;
data.mailURI = msgInfo.UniqueUri;
data.client = client;
emailData.Add(data);
}
But the Bcc field in the msgInfo object always shows 0 even if there is BCC present in the mail. Is there something I can do to fix this?
I saw a similar question here and it was said that it is fixed, but I am having same issue.