This project is read-only.

Pop3Client for Gmail account retrieves SENT message(s) instead of inbox contents

Jul 12, 2010 at 4:44 PM

Mysteriously, using the Pop3Client class with my Gmail account is giving me the one message from my sent mail instead of any messages from my Inbox. The code is very straightforward:

using (var client = new Pop3Client("", "password", ""))
    client.Ssl = true;
    client.Port = 995;
    var listResults = client.ExecuteList();
    foreach (var listResult in listResults)
        var top = client.ExecuteTop(listResult.MailIndex, 1);


Currently, I have 6 messages in my Gmail inbox, and 1 message in my sent mail folder; but the code above only enumerates over a single message. When I inspect this message, it is clearly the message from my sent mail.

Any idea what could be going on here? Is this a Gmail issue, perhaps, or could it be an issue with the way Pop3Client works?

Maybe I'm just doing something wrong.

Jul 16, 2010 at 3:23 PM
In my experience,GMail treat their mail by original way. So,this is GMail issue. As far as I know,I don't know how to resolve this problem. If somebody know the solution, please tell us the way to resolve this problem. Thank you for all.