Default timeout value for POP3

Dec 27, 2013 at 9:08 AM
Edited Dec 27, 2013 at 9:35 AM
Hi,

Can someone please let me know what is the default timeout value for Pop3Client.GetMessage(Int64 mailIndex) method? I got timeout on this method.

Another question, if I want to set the timeout value, whats are the units of it? Is it milliseconds or seconds?
Coordinator
Dec 31, 2013 at 11:09 AM
Hi.

You can set ReceiveTimeout property of Pop3Client class.
Pop3Client cl = new Pop3Client();
cl.ReceiveTimeout = 10 * 1000; //milliseconds
But you could not set default value.
I'll add this feature in the future.
Please wait for a few weeks.
Jan 2, 2014 at 4:43 AM
Thank you very much. I did find out later with tests that it is milliseconds. Thanks again.
Coordinator
Jan 7, 2014 at 1:58 AM
Hi Viragdesai.

I added Default feature.It might be very useful for your requirement.
Pop3Client.Default.ReceiveTimeout = 20 * 1000;
Pop3Client cl = new Pop3Client();
var timeout = cl.ReceiveTimeout; //timeout is set to 20 * 1000. Copy from Pop3Client.Default property value.
All XxxClient class has Default property like below.
SmtpClient.Default.UserName = "myname";
ImapClient.Default.UserName = "myname";
FtpClient.Default.UserName = "myname";
Please check it out!!