0 votes
by (120 points)

Hello, I would like messages to be marked as read when they are opened. I am using the Graph API and I can’t find anything to mark a message as seen. Does this functionality exist? Is it pending implementation? Any alternatives? Thank you very much.

1 Answer

0 votes
by (148k points)

Hello, this functionality has been added in version 7.0.9048 that was published a few moments ago.

When the new MarkDownloadedMessageAsRead option is enabled, messages downloaded using GetMessage/GetMailMessage/GetMimeMessage methods will be marked as seen (read).

var client = new GraphClient();
client.Connect();
client.Login(token);
client.Settings.MarkDownloadedMessageAsRead = true;
var message = client.GetMailMessage(...);
...
...