Thank you for the great product. However, when I tried to connect to imap.google.com via a proxy I got the exception:
"Proxy responded with a 302 code – Found."
How this should be handled? Here is my code:
ProxyFactory factory = new ProxyFactory();
string host = "64.27.0.30";
IProxyClient proxy = factory.CreateProxy(ProxyType.Http, host, 80);
try
{
Socket socket = proxy.Connect("imap.gmail.com", Imap.DefaultPort);
Imap client = new Imap();
client.AttachSSL(socket, "imap.gmail.com");
client.Close();
}
catch (Exception e)
{
Console.WriteLine("{0}", e.Message);
}
Thank you!