37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.ServiceProcess;
|
|
using System.Text;
|
|
|
|
using MailServer.Services;
|
|
|
|
namespace MailServer
|
|
{
|
|
static class Program
|
|
{
|
|
/*static void auth_user_arsch(object sender, IMAP.Server.AuthUser_EventArgs e)
|
|
{
|
|
e.Validated = false;
|
|
if(e.UserName == "blubb" && e.PasswData == "asd")
|
|
e.Validated = true;
|
|
}*/
|
|
/// <summary>
|
|
/// Der Haupteinstiegspunkt für die Anwendung.
|
|
/// </summary>
|
|
static void Main()
|
|
{
|
|
ServiceBase[] ServicesToRun;
|
|
ServicesToRun = new ServiceBase[]
|
|
{
|
|
new IMAP_Service()
|
|
};
|
|
ServiceBase.Run(ServicesToRun);
|
|
/*
|
|
IMAP.Server.Server asd = new IMAP.Server.Server();
|
|
asd.AuthUser += new IMAP.Server.Server.AuthUserEventHandler(auth_user_arsch);
|
|
asd.GetMessage += new IMAP.Server.Server.MessageEventHandler(asd_GetMessage);*/
|
|
}
|
|
}
|
|
}
|