public bool Connect(string host, int port, string type)
 {
     if (_proxyClient != null)
     {
         _imapClient.Connect(_proxyClient.CreateConnection(host, port), host, port, type == "SSL");
         return(_imapClient.IsConnected);
     }
     _imapClient.Connect(host, port, type == "SSL");
     return(_imapClient.IsConnected);
 }