I want to filter the subject line contain below values and it should have only one of below values not more than that
if the subject line contains only one of these values i want to perform further actions with these emails only
how about the following?
mails = mails.Where(Function(m) keywords.Where(Function(s) m.Subject.Contains(s)).Count=1).ToList
Thanks a ton for your prompt response:-)
let me try this and will get update here asap
Worked as per requirement thanks a lot
As the solution from @Yoichi, worked please mark it as solution for closing the thread !!
solution worked kindly close the thread