public void SaveAccountProperties(hMailServer.FetchAccount fetchAccount)
{
fetchAccount.DaysToKeepMessages = SettingDaysToKeepMessages;
fetchAccount.Enabled = checkEnabled.Checked;
fetchAccount.MinutesBetweenFetch = textMinutesBetweenFetch.Number;
fetchAccount.Name = textName.Text;
fetchAccount.Port = textPort.Number;
fetchAccount.ProcessMIMEDate = checkProcessMIMEDate.Checked;
fetchAccount.ProcessMIMERecipients = checkProcessMIMERecipients.Checked;
fetchAccount.ServerAddress = textServer.Text;
fetchAccount.ServerType = (int) comboServerType.SelectedValue;
fetchAccount.Username = textUsername.Text;
fetchAccount.UseSSL = checkUseSSL.Checked;
fetchAccount.UseAntiSpam = checkUseAntiSpam.Checked;
fetchAccount.UseAntiVirus = checkUseAntiVirus.Checked;
fetchAccount.EnableRouteRecipients = checkEnableRouteRecipients.Checked;
if (textPassword.Dirty)
fetchAccount.Password = textPassword.Password;
}