Filtering messages by sender list using the "in" operator is not supported. Using the "eq" operator to filter messages by sender is a standard filtering method, if you feel that this method is too redundant for filter the sender list, then you can try to use code filtering locally.
var result = await graphClient.Me.Messages.GetAsync();
String[] str = new string[] { "emailAddress 1", "emailAddress 2", "emailAddress 3", ....... };
int num = 0;
for (int i = 0; i < result.Value.Count; i++) {
if (str.Contains(result.Value[i].From.EmailAddress.Address) ) {
Console.WriteLine(JsonConvert.SerializeObject(result.Value[i].From.EmailAddress));
num = num + 1;
}
}
Console.WriteLine("count:" + num);
Or open a support ticket with the Microsoft support team about this and see if they have a better suggestion. You can raise support ticket from:
http://aad.portal.azure.com or https://admin.microsoft.com/#/support/requests.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.