Quantcast
Channel: ImapX 2
Viewing all articles
Browse latest Browse all 1952

New Post: ImapX Latest Sample Code to Get only 1 Unread Email

$
0
0
Hi Nabeel,

your code requires minor change, the argument name of the second search command is not MessageUid. It's just UID:
ImapX.MessageCollection messageDetails = client.Folders["INBOX"].Search("UID " + messages[i].MessageUid, true);
If you want to build custom search queries, i recommend you to take a look at the specification of the search command to be sure about the argument names.

Best regards,

Pavel Azanov


PS: Please try to use one forum thread next time.

Viewing all articles
Browse latest Browse all 1952

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>