I have the following code to connect to an inbox of a mail server:

```
Store popStore = popSession.getStore("pop3");
popStore.connect(address, userName, password);
Folder  inboxFolder = popStore.getFolder("Inbox");

```

Post this i check for new mails. Now when I connect to Gmail, I am getting mails from Sent Items as well when actually it is supposed to be only from the Inbox folder. With Yahoo this is working fine. 

Any Idea what can be causing this issue in Gmail?

Edit: I have tried with INBOX as well and the result is the same