I working on a project to copy messages (IMAP) from Gmail to another platform.
As Gmail uses the concept of tags (instead Folders) and each tag is mapped as a IMAP folder, a message with multiples tags will be present in multiple IMAP folders.
So, the same message will processed in each folder/tag with a unnecessary overhead.
How can I detect a message on folder y is the same I already processed on folder x? with this information I can copy the message inside destination server, instead make a new copy from the source, accelerating the process and preserving bandwidth.
I tried work with the UniqueId property , but it not seems to be the path to the solution.