Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit eac7a734 authored by Rob Swindell's avatar Rob Swindell 💬

Add Max Concurrent Connections setting to mail config dialog

Removed the yield line interval (this is a questionable setting anyway).

Also, made the unlimited max-connections display as "N/A" (instead of
"0") in the Terminal Server config dialog.
parent de9333e7
Pipeline #386 passed with stage
in 17 minutes and 45 seconds
......@@ -95,10 +95,10 @@ void __fastcall TMailCfgDlg::FormShow(TObject *Sender)
MaxMsgsWaitingEdit->Text="N/A";
else
MaxMsgsWaitingEdit->Text=AnsiString(MainForm->mail_startup.max_msgs_waiting);
if(MainForm->mail_startup.lines_per_yield == 0)
LinesPerYieldEdit->Text="N/A";
if(MainForm->mail_startup.max_concurrent_connections == 0)
MaxConConEdit->Text="N/A";
else
LinesPerYieldEdit->Text=AnsiString(MainForm->mail_startup.lines_per_yield);
MaxConConEdit->Text=AnsiString((int)MainForm->mail_startup.max_concurrent_connections);
AutoStartCheckBox->Checked=MainForm->MailAutoStart;
LogFileCheckBox->Checked=MainForm->MailLogFile;
......@@ -234,7 +234,7 @@ void __fastcall TMailCfgDlg::OKBtnClick(TObject *Sender)
MainForm->mail_startup.max_msgs_waiting=MaxMsgsWaitingEdit->Text.ToIntDef(0);
MainForm->mail_startup.max_delivery_attempts=DeliveryAttemptsEdit->Text.ToIntDef(MAIL_DEFAULT_MAX_DELIVERY_ATTEMPTS);
MainForm->mail_startup.rescan_frequency=RescanFreqEdit->Text.ToIntDef(MAIL_DEFAULT_RESCAN_FREQUENCY);
MainForm->mail_startup.lines_per_yield=LinesPerYieldEdit->Text.ToIntDef(0);
MainForm->mail_startup.max_concurrent_connections=MaxConConEdit->Text.ToIntDef(0);
SAFECOPY(MainForm->mail_startup.default_charset
,DefCharsetEdit->Text.c_str());
......
object MailCfgDlg: TMailCfgDlg
Left = 1213
Top = 393
Left = 1274
Top = 822
BorderStyle = bsDialog
Caption = 'Mail Server Configuration'
ClientHeight = 246
......@@ -53,8 +53,8 @@ object MailCfgDlg: TMailCfgDlg
Top = 3
Width = 278
Height = 199
ActivePage = POP3TabSheet
TabIndex = 2
ActivePage = GeneralTabSheet
TabIndex = 0
TabOrder = 3
object GeneralTabSheet: TTabSheet
Caption = 'General'
......@@ -84,13 +84,13 @@ object MailCfgDlg: TMailCfgDlg
AutoSize = False
Caption = 'Max Inactivity'
end
object LinesPerYieldLabel: TLabel
object MaxConConLabel: TLabel
Left = 7
Top = 140
Width = 85
Height = 19
AutoSize = False
Caption = 'Lines Per Yield'
Caption = 'Max Con-Conn'
end
object MaxMsgsLabel: TLabel
Left = 7
......@@ -178,14 +178,12 @@ object MailCfgDlg: TMailCfgDlg
ShowHint = True
TabOrder = 10
end
object LinesPerYieldEdit: TEdit
object MaxConConEdit: TEdit
Left = 92
Top = 140
Width = 39
Height = 21
Hint =
'Number of lines of message text sent/received between time-slice' +
' yields'
Hint = 'Maximum Concurrent Connections from same IP (0=unlimited)'
ParentShowHint = False
ShowHint = True
TabOrder = 6
......
......@@ -112,8 +112,8 @@ __published:
TEdit *BLHeaderEdit;
TLabel *BLSubjectLabel;
TLabel *BLHeaderLabel;
TEdit *LinesPerYieldEdit;
TLabel *LinesPerYieldLabel;
TEdit *MaxConConEdit;
TLabel *MaxConConLabel;
TLabel *MaxRecipientsLabel;
TEdit *MaxRecipientsEdit;
TButton *DNSBLExemptionsButton;
......
......@@ -83,7 +83,10 @@ void __fastcall TTelnetCfgDlg::FormShow(TObject *Sender)
FirstNodeEdit->Text=AnsiString((int)MainForm->bbs_startup.first_node);
LastNodeEdit->Text=AnsiString((int)MainForm->bbs_startup.last_node);
MaxConConEdit->Text=AnsiString((int)MainForm->bbs_startup.max_concurrent_connections);
if(MainForm->bbs_startup.max_concurrent_connections == 0)
MaxConConEdit->Text="N/A";
else
MaxConConEdit->Text=AnsiString((int)MainForm->bbs_startup.max_concurrent_connections);
AutoStartCheckBox->Checked=MainForm->SysAutoStart;
AnswerSoundEdit->Text=AnsiString(MainForm->bbs_startup.answer_sound);
HangupSoundEdit->Text=AnsiString(MainForm->bbs_startup.hangup_sound);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment