Anjan Baradwaj
Anjan Baradwaj

Reputation: 1229

Reading mails using JavaMail

This question is more about the behavior. I have been using both POP3 and IMAP to access mails in Gmail using JavaMail API. I noticed something and I wanted to clarify my doubts regarding the same.

I am currently retrieving unseen mails from my Inbox. There were a couple of unread mails and I retrieved them using POP3. I switched over to IMAP and read the same inbox and I was able to retrieve the same 2 mails.

I've been recently using JavaMail and I encountered this kind of behavior and I wanted to know if this is the expected behavior?

Upvotes: 0

Views: 81

Answers (1)

arnt
arnt

Reputation: 9685

You read your mail, did not delete or change anything, so when you read it again it was still there and unchanged. That's all.

Upvotes: 1

Related Questions