Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

IMAP - UID in Message object

843830Mar 6 2007 — edited Mar 7 2007
Any 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 4 2007
Added on Mar 6 2007
9 comments
385 views