I'm managing forwarded e-mails and noting that if I perform a TextSearchQuery(SearchTerm.FromContains, "[email protected]")
I just get the UniqueIds of the forwarder, not the original sender of the e-mail.
I know I could dive into the TextBody
or the HtmlBody
and look at the "from", but this could vary depending on the language of the client and so on, so I was wondering if is there any method to perform that "deep SearchQuery".
There are so many SearchTerm
but a SearchTerm.OriginalFromContains
could be interesting, if it doesn't exists yet!
Thanks.
There's no way to do what you want as IMAP does not support it. MailKit's search API's are limited to the search capabilities of the IMAP protocol (which, unfortunately, are rather limited).