IMAPMessage UID
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Javi_Tabemoor
Posted On:   Tuesday, July 3, 2001 04:30 PM

How do you create a new IMAPMessage? The IMAPMessage contructor is protected. [I am copying the attributes of a source Message to a new IMAPMessage object which will be appended to a different Store. After this process, I need to extract the UID of the IMAPMessage which is not available with the superclasses (Message and MimeMessage).]

Re: IMAPMessage UID

Posted By:   allen_petersen  
Posted On:   Wednesday, November 28, 2001 10:15 AM

Let the Store create it for you.



No, really. Create your new MimeMessage. Call Folder.appendMessages() on the target folder. Listen for the resulting MessageCountEvent telling you that the message has been added. Use MessageCountEvent.getMessages() to get the newly added message. This message will be a proper IMAPMessage, and you should be able to use UIDFolder.getUID() on it.

Re: IMAPMessage UID

Posted By:   John_Zukowski  
Posted On:   Sunday, September 30, 2001 05:19 PM

How do I get the UID for a specific IMAP message? shows how to get UID. Not sure if it answers your question though.
About | Sitemap | Contact