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!

How to delete message from the fodler of AOL account using Java mail

843834Dec 2 2009 — edited Dec 3 2009
Hello All,

I am using Java MAil API in my application, i want to delete message from AOL account's folder,

when i set the folder as "Recently Deleted" or "Trash" , i get an exception as "folder does not exist".

when i tested , some times mail is moving into Recently Deleted folder, but not every time.

this is happening in both the interface as AOl Interface or my application.

when i use folder.close(true) after setting the flag of message as DELETED. it completely remove the message from the acount.
but i want to let the message be remained in the Recently Deleted folder. what should i do.
i dont want to remove the message completely from the account.I am using IMAP also.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 31 2009
Added on Dec 2 2009
3 comments
187 views