61 lines
1.7 KiB
C#
61 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
using LumiSoft.Misc.Auth;
|
|
using LumiSoft.Misc.SocketServer;
|
|
|
|
namespace LumiSoft.IMAP.Server
|
|
{
|
|
public partial class IMAP_Server
|
|
{
|
|
/// <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;
|
|
}
|
|
}
|
|
}
|
|
}
|