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

New Post: How to fetch only one unseen message at a time?

$
0
0
Hi mengfzcn,

the support for this feature has been improved, now you can supply the count of messages you want to fetch, as well as limit the amount of data you want to be downloaded (such as headers, attachments etc.).

A basic sample for fetching the last unseen message:
// Use default fetching mode (set through client.Behavior.MessageFetchMode, by default: MessageFetchMode.Basic)
// Set count to 1 to fetch only one message
var messages = client.Folder.Search("UNSEEN", MessageFetchMode.ClientDefault, 1);
For more details you can also check the documentation:
Greets,

Pavel

Viewing all articles
Browse latest Browse all 1952

Trending Articles



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