Goedel.Mesh.MailAccountInfoWLM.GetInbound C# (CSharp) Method

GetInbound() private method

private GetInbound ( ) : List
return List
        List<Connection> GetInbound() {

            var _Inbound = new Connection();
            var ConnectionList = new List<Connection> { _Inbound };

            var IMAP_Server = MessageAccount.IMAP_Server;
            if (IMAP_Server != null) {
                _Inbound.AppProtocol = AppProtocol.IMAP4;
                _Inbound.ServiceName = IMAP_Server;
                _Inbound.Port = (int)MessageAccount.IMAP_Port;
                
                _Inbound.UserName = MessageAccount.IMAP_User_Name;
                _Inbound.Password = null;
                _Inbound.TLSMode = MessageAccount.IMAP_Secure_Connection == 0 ?
                    TLSMode.None : TLSMode.Direct;
                _Inbound.SecureAuth = MessageAccount.IMAP_Use_Sicily != 0;
                _Inbound.TimeOut = (int) MessageAccount.IMAP_Timeout;
                _Inbound.Polling =  MessageAccount.IMAP_Polling > 0;

                }
            return ConnectionList;
            }