public bool SaveData()
{
hMailServer.Settings settings = APICreator.Application.Settings;
hMailServer.Logging logging = settings.Logging;
logging.Enabled = checkEnableLogging.Checked;
logging.LogApplication = chkLogApplication.Checked;
logging.LogSMTP = checkLogSMTP.Checked;
logging.LogPOP3 = checkLogPOP3.Checked;
logging.LogIMAP = checkLogIMAP.Checked;
logging.LogTCPIP = checkLogTCPIP.Checked;
logging.LogDebug = checkLogDebug.Checked;
logging.AWStatsEnabled = checkLogAWStats.Checked;
logging.KeepFilesOpen = checkKeepFilesOpen.Checked;
DirtyChecker.SetClean(this);
Marshal.ReleaseComObject(settings);
Marshal.ReleaseComObject(logging);
return true;
}