how to get the index of message with unique id of imap
AlexGeller opened this issue · comments
Is your feature request related to a problem? Please describe.
first of all, i want to fetch all message by paging use imap, so i can get a unique id from first page, but when i want to read the second page, there maybe some message deleted, so i have to turn the unique id to message index, so that i can fetch the second page from this index.
Describe the solution you'd like
now i have use this code to get the index of message with unique id.
IList lastMsg = inbox.Fetch(new List { new UniqueId(lastUID) }, MessageSummaryItems.UniqueId);
and get the index like this.
lastMsg[0].Index
Describe alternatives you've considered
i just want to want that if there have a method to get index directly.
Additional context
Add any other context or screenshots about the feature request here.
That's the only way