0 votes

Is it possible to fetch all messages received from a particular email address using IMAP?

I want to fetch all messages in my INBOX which have originated from abc@example.org

by

1 Answer

0 votes
 
Best answer

Use Imap.Search method:

List<long> uids = client.Search().Where(
    Expression.From("abx@example.org"));

You can find more information on searching IMAP here:
https://www.limilabs.com/blog/how-to-search-imap-in-net

by (297k points)
...