dcsimg
Adding headers to IMAP messages using JavaMail
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Al_Gray
Posted On:   Monday, February 16, 2004 09:03 AM

Hi there,


I need to add some custom headers to email using javamail. However, when I try to add a header using the .addHeader(str1, str2), I get an exception telling me that IMAP messages are read-only:


javax.mail.IllegalWriteException: IMAPMessage is read-only

at com.sun.mail.imap.IMAPMessage.addHeader(IMAPMessage.java:656)



Any suggestions for work-arounds would be greatly appreciated. And no, I can't just use POP3 instead - it has to be IMAP :)

Cheers,

About | Sitemap | Contact