This project is read-only.

Mail Count Displaying Wrongly

Sep 2, 2010 at 6:23 AM


Im trying to access my gmail account. Pop3Client.GetTotalMessageCount() method is returning 467. where as the expected count was more than 1200.

Am i missing any thing. The following is the code for refrence. Help in this regard is highly appreciated.

             using (Pop3Client cl = new Pop3Client())
                cl.ServerName = ConfigurationManager.AppSettings["PopServer"];
                cl.Port = Convert.ToInt32(ConfigurationManager.AppSettings["PopPort"]);
                cl.Ssl = Convert.ToBoolean(ConfigurationManager.AppSettings["PopIsSSL"]);
                cl.UserName = ConfigurationManager.AppSettings["PopMail"];
                cl.Password = ConfigurationManager.AppSettings["PopPass"];
                cl.AuthenticateMode = Pop3AuthenticateMode.Auto;

                if (cl.Authenticate())



Sep 3, 2010 at 5:02 PM

Perhaps you are right and GMail is wrong(or it is the spec of GMail).
As far as I know,GMail treat the mail data with their own way.
So, GMail sometimes return unexpected result.

Please check it that you send pop3 command with telnet and compare the received result is different from the result of C#Mail class.
If the result is same,it is spec of GMail.