27 lines
818 B
C#
27 lines
818 B
C#
using LumiSoft.Misc.SocketServer;
|
|
using LumiSoft.Misc.Auth;
|
|
using LumiSoft.Misc;
|
|
using System.Net;
|
|
using System.Security.Cryptography.X509Certificates;
|
|
|
|
namespace LumiSoft.IMAP.Server
|
|
{
|
|
/// <summary>
|
|
/// IMAP server componet.
|
|
/// </summary>
|
|
public partial class IMAP_Server : SocketServer
|
|
{
|
|
private int m_MaxConnectionsPerIP = 0;
|
|
private SaslAuthTypes m_SupportedAuth = SaslAuthTypes.All;
|
|
private string m_GreetingText = "";
|
|
private int m_MaxMessageSize = 1000000;
|
|
/// <summary>
|
|
/// Defalut constructor.
|
|
/// </summary>
|
|
public IMAP_Server(int port, SslMode mode ,X509Certificate2 sslcert) : base()
|
|
{
|
|
this.BindInfo = new IPBindInfo[]{new IPBindInfo("",IPAddress.Any,port,mode,sslcert)};
|
|
}
|
|
}
|
|
}
|