POP3 Gmail is showing sent items in message count

I am using sample code to connect to gmail via POP and iterate through messages and download them. Contrary to what I see in the documentation, the POP3 client is accessing sent messages as well as received messages. Is this expected behavior? For this application I am only interested in received mail, not sent mail.


I will be testing with Imap over the next day or so, but my hope was to offer interfaces for both.

IMAP seems to work correctly.

Hi,

Thank you for inquiry.

Pop3Client can only get messages from Inbox folder. It cannot access other folders like sent or other.

It seems that with gmail, it access the All Mail folder, not the Inbox.