Skip to content
Snippets Groups Projects
Commit a0c222c1 authored by rswindell's avatar rswindell
Browse files

Added code (that was missing) to save/restore MailRelayPort setting.

parent fc7ef929
No related branches found
No related tags found
No related merge requests found
......@@ -1233,6 +1233,9 @@ void __fastcall TMainForm::StartupTimerTick(TObject *Sender)
,sizeof(mail_startup.relay_server)-1
,Registry->ReadString("MailRelayServer").c_str());
if(Registry->ValueExists("MailRelayPort"))
mail_startup.relay_port=Registry->ReadInteger("MailRelayPort");
if(Registry->ValueExists("MailDNSServer"))
sprintf(mail_startup.dns_server,"%.*s"
,sizeof(mail_startup.dns_server)-1
......@@ -1538,6 +1541,7 @@ void __fastcall TMainForm::SaveSettings(TObject* Sender)
Registry->WriteInteger("MailPOP3Port",mail_startup.pop3_port);
Registry->WriteString("MailRelayServer",mail_startup.relay_server);
Registry->WriteInteger("MailRelayPort",mail_startup.relay_port);
Registry->WriteString("MailDNSServer",mail_startup.dns_server);
Registry->WriteString("MailInboundSound",AnsiString(mail_startup.inbound_sound));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment