I am working on an application where I download all IMAP folders and their emails at first.
Then I run a scheduled task to check for new emails (using largest UID method) every few minutes for each folders of an Email address account. I select folder using:
imap.Select(folderName);
Folder name is taken from list of folders I have stored in my database. But if folder has been renamed from some other applications in Imap server, then I cannot select that folder and I run into trouble.
So, I would like to know if there is any method to know if a folder has been renamed or its old name is still stored some where. I cannot find any folder Id or Unique identifier for Imap folders. Please help.
I hope my question is clear enough to understand.
Thanks.