MailServer/MailServer/LumiSoft/IMAP/Server/IMAP_Server/IMAP_Server.Properties.cs

61 lines
1.7 KiB
C#
Raw Normal View History

2010-07-10 02:32:10 +02:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
2010-07-11 23:52:34 +02:00
using LumiSoft.Misc.Auth;
using LumiSoft.Misc.SocketServer;
2010-07-10 19:45:10 +02:00
2010-07-11 23:52:34 +02:00
namespace LumiSoft.IMAP.Server
2010-07-10 02:32:10 +02:00
{
2010-07-10 15:13:50 +02:00
public partial class IMAP_Server
2010-07-10 02:32:10 +02:00
{
/// <summary>
/// Gets or sets server supported authentication types.
/// </summary>
public SaslAuthTypes SupportedAuthentications
{
get { return m_SupportedAuth; }
set { m_SupportedAuth = value; }
}
/// <summary>
/// Gets or sets server greeting text.
/// </summary>
public string GreetingText
{
get { return m_GreetingText; }
set { m_GreetingText = value; }
}
/// <summary>
/// Gets or sets maximum allowed conncurent connections from 1 IP address. Value 0 means unlimited connections.
/// </summary>
public int MaxConnectionsPerIP
{
get { return m_MaxConnectionsPerIP; }
set { m_MaxConnectionsPerIP = value; }
}
/// <summary>
/// Maximum message size.
/// </summary>
public int MaxMessageSize
{
get { return m_MaxMessageSize; }
set { m_MaxMessageSize = value; }
}
/// <summary>
/// Gets active sessions.
/// </summary>
public new IMAP_Session[] Sessions
{
get
{
SocketServerSession[] sessions = base.Sessions;
IMAP_Session[] imapSessions = new IMAP_Session[sessions.Length];
sessions.CopyTo(imapSessions, 0);
return imapSessions;
}
}
}
}