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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

delete mail from inbox of any server like gmail,yahoo,hotmail

843834Feb 18 2009 — edited Dec 2 2009
Hello,

Right now i am working on email module using JAVAMAIL API. In this i have already completed the authentication and send mail programming but now when i am trying to fetch mails from inbox using open.folder("INBOX")....and all that programming at that time i am getting some messages from inbox but not all the messages from inbox i.e if i have 23 messages in my gmail account but in this programming they are showing only 11 messages... in getMessageCount() method... can anyone explain me tht why?????

Another problem is with delete message.. i hava also done some programming about it...it works in my application when i am running it.... but it does not delete message from my gmail account...?????

And also methods like getNewMessageCount() , getUnreadMessageCount() , getDeletedMessageCount() these methods gives me output which is not correct as in my Gmail account.....i dont know on which basis all these methods works??

Thanks in advance

manalee
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 30 2009
Added on Feb 18 2009
51 comments
5,002 views