Hi i am developing gmail application using
java mail. I can retrieve all my mail from gmail server
store.openFolder("INBOX"); and i can read messages from the folder folder.getMessages();
i can see all the messages. when i use the code
msg.getContext();
.............
...........
folder.close(false);
When i try to execute next time the same code i couldn't get back the mail which i opened already.
if i didn't open the message i can get from server ..
and if i didn't use folder.close method then all the mails i can get from the server...
Please provide me the code to read all messages from server and update opened mails like mark as read,
and when next time i should get all the mails and i should filter whether read msg or unread msg...
Thanks for any help provided