javax.mail.MethodNotSupportedException.
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Krishna_Kumar
Posted On:   Monday, August 13, 2001 02:14 AM


When iam using one of the following two to delete the mail from my inbox
iam getting 'javax.mail.MethodNotSupportedException':
1)message[i].setFlag(Flags.Flag.DELETED, true);
2)folder.delete(true);
Iam using POP3 and not IMAP
can anyone pass me some hint to solve my problem.

Thank you!!!

Re: javax.mail.MethodNotSupportedException.

Posted By:   sharona_f  
Posted On:   Wednesday, August 15, 2001 12:39 AM

Hi



Pop3 does not support expunge method to delete mail.



use the following code , when using pop3.



msg.setFlag(Flags.Flag.DELETED,true);


folder.close(true);


folder.open(Folder.READ_WRITE);

Re: javax.mail.MethodNotSupportedException.

Posted By:   John_Zukowski  
Posted On:   Monday, August 13, 2001 12:35 PM

There is only one folder in POP. You can't delete the folder.
About | Sitemap | Contact