Search code examples
c#wpfemailimapmailkit

MailKit IMAP search mail by the subject field


I have a wpf software which needs to get inquiry emails that contain specific codes in the subject. basically search and get a mail by the contents of subject field. I cannot find any relative information, perhaps it would be possible to receive all the mails and then do the search, but that is highly inefficient. I would appreciate if someone could at least tell me if it is even possible to do.


Solution

  • Sure, it's possible to be done. Have a look at the MimeKit documentation