List<long> uids;
if (last == null || last.UIDValidity != status.UIDValidity)
{
uids = repo.MailManager.ImapClient.GetAll();
}
else
{
uids = repo.MailManager.ImapClient.Search().Where(
Expression.UID(
Range.From(last.LargestUID))
);
uids.Remove(last.LargestUID);
}
foreach (long uid in uids)
{
lastUid = uid;
var eml = repo.MailManager.ImapClient.GetMessageByUID(uid);
IMail email = new MailBuilder().CreateFromEml(eml);
}
Hey, i am using above code i get uid from the mail server itself. Also i do not facing this issue for every folder, i am facing this issue for draft folder only. can you please suggest?