My question is : is it possible to filter emails by domain using imap search component. I would like to filter an inbox excluding all the mails from my domain bca.fr ???
You can use Expression.From method (it creates criterion to find
messages that contain the specified string in the envelope structure's
List<long> uids = imap.Search(Expression.From("bca.fr"));
VAT: PL 5213195875
02-707, Warsaw Poland