/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { CleverComponents.InetSuite.MailUserAccountItem mailUserAccountItem2 = new CleverComponents.InetSuite.MailUserAccountItem(); this.memLog = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.btnStop = new System.Windows.Forms.Button(); this.btnStart = new System.Windows.Forms.Button(); this.edtRootDir = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); this.edtPort = new System.Windows.Forms.TextBox(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.pop3Server1 = new CleverComponents.InetSuite.Pop3Server(); this.pop3FileHandler1 = new CleverComponents.InetSuite.Pop3FileHandler(); this.label6 = new System.Windows.Forms.Label(); this.cbUseTls = new System.Windows.Forms.ComboBox(); this.label7 = new System.Windows.Forms.Label(); this.certificateStore1 = new CleverComponents.InetSuite.CertificateStore(); this.SuspendLayout(); // // memLog // this.memLog.Location = new System.Drawing.Point(0, 256); this.memLog.Multiline = true; this.memLog.Name = "memLog"; this.memLog.ReadOnly = true; this.memLog.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.memLog.Size = new System.Drawing.Size(440, 136); this.memLog.TabIndex = 19; // // label5 // this.label5.Location = new System.Drawing.Point(16, 235); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(48, 15); this.label5.TabIndex = 18; this.label5.Text = "Log"; // // btnStop // this.btnStop.Location = new System.Drawing.Point(155, 208); this.btnStop.Name = "btnStop"; this.btnStop.Size = new System.Drawing.Size(75, 23); this.btnStop.TabIndex = 17; this.btnStop.Text = "Stop"; this.btnStop.Click += new System.EventHandler(this.btnStop_Click); // // btnStart // this.btnStart.Location = new System.Drawing.Point(69, 208); this.btnStart.Name = "btnStart"; this.btnStart.Size = new System.Drawing.Size(75, 23); this.btnStart.TabIndex = 16; this.btnStart.Text = "Start"; this.btnStart.Click += new System.EventHandler(this.btnStart_Click); // // edtRootDir // this.edtRootDir.Location = new System.Drawing.Point(69, 176); this.edtRootDir.Name = "edtRootDir"; this.edtRootDir.Size = new System.Drawing.Size(347, 20); this.edtRootDir.TabIndex = 15; this.edtRootDir.Text = "C:\\CleverMailBox\\"; // // label4 // this.label4.Location = new System.Drawing.Point(16, 179); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(56, 14); this.label4.TabIndex = 14; this.label4.Text = "Root Dir"; // // edtPort // this.edtPort.Location = new System.Drawing.Point(69, 144); this.edtPort.Name = "edtPort"; this.edtPort.Size = new System.Drawing.Size(75, 20); this.edtPort.TabIndex = 13; this.edtPort.Text = "995"; // // label3 // this.label3.Location = new System.Drawing.Point(16, 147); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(32, 15); this.label3.TabIndex = 12; this.label3.Text = "Port"; // // label2 // this.label2.Location = new System.Drawing.Point(16, 112); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(408, 23); this.label2.TabIndex = 11; this.label2.Text = "Please use the \"CleverTester\" user name and \"clevertester\" password to log-in."; // // label1 // this.label1.Location = new System.Drawing.Point(16, 11); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(416, 37); this.label1.TabIndex = 10; this.label1.Text = "This is a sample POP3 SSL / TLS server. You can use any SSL-enabled POP3 client (" + "such as TclPop3 or MS Outlook client to connect to this server."; // // pop3Server1 // this.pop3Server1.HelpText = new string[] { "Valid commands: USER", "PASS", "APOP", "AUTH", "QUIT", "NOOP", "HELP", "STAT", "RETR", "TOP", "DELE", "RSET", "LIST", "UIDL", "STLS" }; this.pop3Server1.ServerName = "Clever Internet Suite POP3 service"; this.pop3Server1.SessionTimeOut = -1; mailUserAccountItem2.DisplayName = "Clever Tester"; mailUserAccountItem2.Password = "******"; mailUserAccountItem2.UserName = "******"; this.pop3Server1.UserAccounts.AddRange(new CleverComponents.InetSuite.UserAccountItem[] { mailUserAccountItem2 }); this.pop3Server1.Authenticate += new CleverComponents.InetSuite.Pop3AuthenticateEventHandler(this.pop3Server1_Authenticate); this.pop3Server1.CommandReceived += new CleverComponents.InetSuite.TcpCommandEventHandler(this.pop3Server1_CommandReceived); this.pop3Server1.ResponseSent += new CleverComponents.InetSuite.TcpResponseEventHandler(this.pop3Server1_ResponseSent); this.pop3Server1.GetCertificate += new CleverComponents.InetSuite.GetCertificateEventHandler(this.pop3Server1_GetCertificate); this.pop3Server1.Started += new System.EventHandler(this.pop3Server1_Started); this.pop3Server1.Stopped += new System.EventHandler(this.pop3Server1_Stopped); this.pop3Server1.ConnectionAccepted += new CleverComponents.InetSuite.ConnectionAcceptedEventHandler(this.pop3Server1_ConnectionAccepted); this.pop3Server1.ConnectionClosed += new CleverComponents.InetSuite.ConnectionEventHandler(this.pop3Server1_ConnectionClosed); // // pop3FileHandler1 // this.pop3FileHandler1.MailBoxDir = null; this.pop3FileHandler1.Server = this.pop3Server1; // // label6 // this.label6.Location = new System.Drawing.Point(16, 56); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(400, 48); this.label6.TabIndex = 20; this.label6.Text = "This server uses self-signed server certificate to establish the SSL connection. " + "In real application you will need to request a certificate from trusted issuer o" + "r use your own self-signed certificate."; // // cbUseTls // this.cbUseTls.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cbUseTls.Items.AddRange(new object[] { "None", "Implicit", "Allow Explicit", "Require Explicit" }); this.cbUseTls.Location = new System.Drawing.Point(296, 144); this.cbUseTls.Name = "cbUseTls"; this.cbUseTls.Size = new System.Drawing.Size(121, 21); this.cbUseTls.TabIndex = 21; // // label7 // this.label7.Location = new System.Drawing.Point(200, 146); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(89, 16); this.label7.TabIndex = 22; this.label7.Text = "SSL / TLS Mode"; // // certificateStore1 // this.certificateStore1.ValidFrom = new System.DateTime(2008, 8, 17, 15, 5, 55, 46); this.certificateStore1.ValidTo = new System.DateTime(2009, 8, 17, 15, 5, 55, 46); // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(440, 392); this.Controls.Add(this.cbUseTls); this.Controls.Add(this.label7); this.Controls.Add(this.label6); this.Controls.Add(this.memLog); this.Controls.Add(this.label5); this.Controls.Add(this.btnStop); this.Controls.Add(this.btnStart); this.Controls.Add(this.edtRootDir); this.Controls.Add(this.label4); this.Controls.Add(this.edtPort); this.Controls.Add(this.label3); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Name = "Form1"; this.Text = "Clever POP3 Server"; this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { CleverComponents.InetSuite.MailUserAccountItem mailUserAccountItem1 = new CleverComponents.InetSuite.MailUserAccountItem(); this.memLog = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.btnStop = new System.Windows.Forms.Button(); this.btnStart = new System.Windows.Forms.Button(); this.edtRootDir = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); this.edtPort = new System.Windows.Forms.TextBox(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.pop3Server1 = new CleverComponents.InetSuite.Pop3Server(); this.pop3FileHandler1 = new CleverComponents.InetSuite.Pop3FileHandler(); this.SuspendLayout(); // // memLog // this.memLog.Location = new System.Drawing.Point(0, 192); this.memLog.Multiline = true; this.memLog.Name = "memLog"; this.memLog.ReadOnly = true; this.memLog.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.memLog.Size = new System.Drawing.Size(440, 136); this.memLog.TabIndex = 19; // // label5 // this.label5.Location = new System.Drawing.Point(16, 173); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(32, 16); this.label5.TabIndex = 18; this.label5.Text = "Log"; // // btnStop // this.btnStop.Location = new System.Drawing.Point(152, 144); this.btnStop.Name = "btnStop"; this.btnStop.Size = new System.Drawing.Size(75, 23); this.btnStop.TabIndex = 17; this.btnStop.Text = "Stop"; this.btnStop.Click += new System.EventHandler(this.btnStop_Click); // // btnStart // this.btnStart.Location = new System.Drawing.Point(71, 144); this.btnStart.Name = "btnStart"; this.btnStart.Size = new System.Drawing.Size(75, 23); this.btnStart.TabIndex = 16; this.btnStart.Text = "Start"; this.btnStart.Click += new System.EventHandler(this.btnStart_Click); // // edtRootDir // this.edtRootDir.Location = new System.Drawing.Point(71, 112); this.edtRootDir.Name = "edtRootDir"; this.edtRootDir.Size = new System.Drawing.Size(345, 20); this.edtRootDir.TabIndex = 15; this.edtRootDir.Text = "C:\\CleverMailBox\\"; // // label4 // this.label4.Location = new System.Drawing.Point(16, 115); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(56, 16); this.label4.TabIndex = 14; this.label4.Text = "Root Dir"; // // edtPort // this.edtPort.Location = new System.Drawing.Point(71, 80); this.edtPort.Name = "edtPort"; this.edtPort.Size = new System.Drawing.Size(75, 20); this.edtPort.TabIndex = 13; this.edtPort.Text = "110"; // // label3 // this.label3.Location = new System.Drawing.Point(16, 83); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(32, 14); this.label3.TabIndex = 12; this.label3.Text = "Port"; // // label2 // this.label2.Location = new System.Drawing.Point(16, 48); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(408, 23); this.label2.TabIndex = 11; this.label2.Text = "Please use the \"CleverTester\" user name and \"clevertester\" password to log-in."; // // label1 // this.label1.Location = new System.Drawing.Point(16, 11); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(416, 29); this.label1.TabIndex = 10; this.label1.Text = "This is a sample POP3 server. You can use any mail client with POP3 support to co" + "nnect to this server."; // // pop3Server1 // this.pop3Server1.HelpText = new string[] { "Valid commands: USER", "PASS", "APOP", "AUTH", "QUIT", "NOOP", "HELP", "STAT", "RETR", "TOP", "DELE", "RSET", "LIST", "UIDL", "STLS" }; mailUserAccountItem1.DisplayName = "Clever Tester"; mailUserAccountItem1.Password = "******"; mailUserAccountItem1.UserName = "******"; this.pop3Server1.UserAccounts.AddRange(new CleverComponents.InetSuite.UserAccountItem[] { mailUserAccountItem1 }); this.pop3Server1.Authenticate += new CleverComponents.InetSuite.Pop3AuthenticateEventHandler(this.pop3Server1_Authenticate); this.pop3Server1.CommandReceived += new CleverComponents.InetSuite.TcpCommandEventHandler(this.pop3Server1_CommandReceived); this.pop3Server1.ResponseSent += new CleverComponents.InetSuite.TcpResponseEventHandler(this.pop3Server1_ResponseSent); this.pop3Server1.Started += new System.EventHandler(this.pop3Server1_Started); this.pop3Server1.Stopped += new System.EventHandler(this.pop3Server1_Stopped); this.pop3Server1.ConnectionAccepted += new CleverComponents.InetSuite.ConnectionAcceptedEventHandler(this.pop3Server1_ConnectionAccepted); this.pop3Server1.ConnectionClosed += new CleverComponents.InetSuite.ConnectionEventHandler(this.pop3Server1_ConnectionClosed); // // pop3FileHandler1 // this.pop3FileHandler1.MailBoxDir = null; this.pop3FileHandler1.Server = this.pop3Server1; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(440, 326); this.Controls.Add(this.memLog); this.Controls.Add(this.label5); this.Controls.Add(this.btnStop); this.Controls.Add(this.btnStart); this.Controls.Add(this.edtRootDir); this.Controls.Add(this.label4); this.Controls.Add(this.edtPort); this.Controls.Add(this.label3); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Name = "Form1"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Clever POP3 Server"; this.ResumeLayout(false); this.PerformLayout(); }