This project is read-only.

Unexpected response text

Jan 22, 2013 at 10:35 AM

The problem is...when i load all messages (about 300) from mailbox (on postfix) to DataGridView, there is sometimes an error "Unexpected response text", so is there any way to solve it? or bypass it and continue loading rest of the messages?

That error happens not for all mailboxes, but only for some of them...

Here is the code of mail selection:

 using (Pop3Client cl = new Pop3Client(pop3srv, 110, login, pass))
            {
                cl.Ssl = false;
                cl.AuthenticateMode = Pop3AuthenticateMode.Auto;
                cl.ResponseEncoding = Encoding.UTF8;
                var bl = cl.Authenticate();
                    if (bl == true)
                    {
                        var l = cl.ExecuteList();
                        for (int i = 0; i < l.Count; i++)
                        {
                            mg = cl.GetMessage(l[i].MailIndex);
                            dataGridView1.Rows.Add(mg.Index, mg.From, mg.Subject, mg.Date, Convert.ToInt32(mg.Size) / 1024);
                        }
                    }
            }

Jan 23, 2013 at 12:55 AM

Hi.

It may be parse exception of this library.
Please send me raw text of that mail which cause exceptions.
I'll investigate and solve it.

regards.

Jan 23, 2013 at 5:20 AM
Edited Jan 22, 2014 at 10:13 AM
Hi. There it is... <deleted because of spam>
Jan 24, 2013 at 11:14 AM

I could not reproduct your bug.
It seems that a bug to receive data from server.
Especially, period of "ВХЬР:ґЮбвгЯ Ъ ЯаЮУаРЬЭЮЬг Ю СХбЯХзХЭШо." line seems include bug.

Please send me a mail with body text is

�РЪРЧзШЪ:�ЭРиЪШЭ �ЭвЮЭ
ёбЯЮЫЭШвХЫм:support
БвРвгб:ЅЮТРп
їаШЮаШвХв:ЅШЧЪШЩ
БаЮЪ:
єРвХУЮаШп:ґагУЮХ
ВХЬР:ґЮбвгЯ Ъ ЯаЮУаРЬЭЮЬг Ю СХбЯХзХЭШо.
ІТЮФ ЧРпТЪШ:

Mailaddress is higuchihiguchihiguchi@gmail.com
and higuchihiguchihiguchi@hotmail.com
I'll investigate it.

Jan 28, 2013 at 12:19 PM

Ive sent you some mail files from postfix, did u get it? Wright about the solution here, if its possible

Thank you

Jan 28, 2013 at 2:24 PM

Oh, it was in junk mail folder.
I'll check your mail and response.

regards.