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:
Greets,
Pavel
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