IMAP - UID in Message object
843830Mar 6 2007 — edited Mar 7 2007Any idea why the access to UID filed in an IMAPMessage object is not exposed. I have a client application that'll sync. it's state with the server by periodically polling it. While polling, it'll check the read status update on messages that it has cached (messages of interest), any new & deleted messages.
Most methods that do these operations (i.e. search, fetch) return Message object which doesn't expose the UID. I want the UID as the glue from messages that i am caching and the messages that gets returned back to me while performing some of the operations at the folder level. I don't want to trust (and probably shouldn't) the message sequence number as it's session specific.
The only way i could think of is by sub-classing the IMAPMessage and then typecasting the returned Message (resulting from my search or fetch operation) object to my IMAPMessage sub-class.
Let me know your thoughts.