////public new ImapConnection Connection ////{ //// get { return (ImapConnection)base.Connection; } //// set { base.Connection = value; } ////} public override void Authenticate(MailUserInfo userInfo) { var command = Connection.CreateCommand(); string password = GetPassword(userInfo.Password); string commandStr = string.Format(Imap.IMAP_LOGIN + " {0} {1}", userInfo.Email, password); command.Command = commandStr; command.ExecuteCommand(hideCommandInLog: true); LoggerHolders.ConsoleLogger.Log(commandStr.Replace(password, new string('*', password.Length))); LoggerHolders.ConsoleLogger.Log(command.Response, LogType.Success); }
public abstract void Authenticate(MailUserInfo userInfo);