I have the following code to connect to the mailbox of the mail server:
Store popStore = popSession.getStore("pop3"); popStore.connect(address, userName, password); Folder inboxFolder = popStore.getFolder("Inbox");
To post this, I am checking for new letters. Now, when I connect to Gmail, I get emails from sent items, but in fact it should only be from the Inbox. With Yahoo, this works fine.
Any idea what might cause this problem in Gmail?
Edit: I also tried with INBOX, and the result is the same
source share