Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
d6e9e5e0
Commit
d6e9e5e0
authored
23 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Added "default user" feature for "catch-all" e-mail.
parent
db34fe89
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/sbbs3/ctrl/MailCfgDlgUnit.cpp
+4
-0
4 additions, 0 deletions
src/sbbs3/ctrl/MailCfgDlgUnit.cpp
src/sbbs3/ctrl/MailCfgDlgUnit.dfm
+30
-10
30 additions, 10 deletions
src/sbbs3/ctrl/MailCfgDlgUnit.dfm
src/sbbs3/ctrl/MailCfgDlgUnit.h
+2
-0
2 additions, 0 deletions
src/sbbs3/ctrl/MailCfgDlgUnit.h
with
36 additions
and
10 deletions
src/sbbs3/ctrl/MailCfgDlgUnit.cpp
+
4
−
0
View file @
d6e9e5e0
...
...
@@ -104,6 +104,7 @@ void __fastcall TMailCfgDlg::FormShow(TObject *Sender)
DeliveryAttemptsEdit
->
Text
=
AnsiString
(
MainForm
->
mail_startup
.
max_delivery_attempts
);
RescanFreqEdit
->
Text
=
AnsiString
(
MainForm
->
mail_startup
.
rescan_frequency
);
DefaultUserEdit
->
Text
=
AnsiString
(
MainForm
->
mail_startup
.
default_user
);
DebugTXCheckBox
->
Checked
=
MainForm
->
mail_startup
.
options
&
MAIL_OPT_DEBUG_TX
;
...
...
@@ -168,6 +169,9 @@ void __fastcall TMailCfgDlg::OKBtnClick(TObject *Sender)
=
DeliveryAttemptsEdit
->
Text
.
ToIntDef
(
10
);
MainForm
->
mail_startup
.
rescan_frequency
=
RescanFreqEdit
->
Text
.
ToIntDef
(
300
);
sprintf
(
MainForm
->
mail_startup
.
default_user
,
"%.*s"
,
sizeof
(
MainForm
->
mail_startup
.
default_user
)
-
1
,
DefaultUserEdit
->
Text
.
c_str
());
sprintf
(
MainForm
->
mail_startup
.
dns_server
,
"%.*s"
,
sizeof
(
MainForm
->
mail_startup
.
dns_server
)
-
1
,
DNSServerEdit
->
Text
.
c_str
());
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/ctrl/MailCfgDlgUnit.dfm
+
30
−
10
View file @
d6e9e5e0
object MailCfgDlg: TMailCfgDlg
Left =
501
Top = 3
03
Left =
635
Top = 3
12
BorderStyle = bsDialog
Caption = 'Mail Server Configuration'
ClientHeight = 303
...
...
@@ -164,22 +164,30 @@ object MailCfgDlg: TMailCfgDlg
ImageIndex = 1
object SpamFilterLabel: TLabel
Left = 9
Top =
44
Top =
76
Width = 75
Height =
16
Height =
24
Caption = 'Spam Filters'
end
object TelnetPortLabel: TLabel
Left = 9
Top = 12
Width = 104
Height = 2
6
Height = 2
4
AutoSize = False
Caption = 'Listening Port'
end
object DefaultUserLabel: TLabel
Left = 9
Top = 44
Width = 104
Height = 24
AutoSize = False
Caption = 'Default User'
end
object RBLCheckBox: TCheckBox
Left = 113
Top =
44
Top =
76
Width = 57
Height = 24
Hint = 'Use Realtime Blackhole List (RBL) Spam Filter'
...
...
@@ -190,7 +198,7 @@ object MailCfgDlg: TMailCfgDlg
end
object RSSCheckBox: TCheckBox
Left = 185
Top =
44
Top =
76
Width = 56
Height = 24
Hint = 'Use Relay Spam Stopper (RSS) Spam Filter'
...
...
@@ -201,7 +209,7 @@ object MailCfgDlg: TMailCfgDlg
end
object DULCheckBox: TCheckBox
Left = 256
Top =
44
Top =
76
Width = 57
Height = 24
Hint = 'Use Dail-up User List (DUL) Spam Filter'
...
...
@@ -235,7 +243,7 @@ object MailCfgDlg: TMailCfgDlg
end
object DebugHeadersCheckBox: TCheckBox
Left = 185
Top =
76
Top =
108
Width = 146
Height = 26
Hint = 'Log all received mail headers (for debugging)'
...
...
@@ -244,6 +252,18 @@ object MailCfgDlg: TMailCfgDlg
ShowHint = True
TabOrder = 5
end
object DefaultUserEdit: TEdit
Left = 113
Top = 44
Width = 185
Height = 24
Hint =
'Mail for unknown users will go into this user'#39's mailbox (e.g. "s' +
'ysop")'
ParentShowHint = False
ShowHint = True
TabOrder = 6
end
end
object POP3TabSheet: TTabSheet
Caption = 'POP3'
...
...
@@ -252,7 +272,7 @@ object MailCfgDlg: TMailCfgDlg
Left = 9
Top = 12
Width = 102
Height = 2
6
Height = 2
4
AutoSize = False
Caption = 'Listening Port'
end
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/ctrl/MailCfgDlgUnit.h
+
2
−
0
View file @
d6e9e5e0
...
...
@@ -106,6 +106,8 @@ __published:
TEdit
*
OutboundSoundEdit
;
TButton
*
OutboundSoundButton
;
TCheckBox
*
SendMailCheckBox
;
TLabel
*
DefaultUserLabel
;
TEdit
*
DefaultUserEdit
;
void
__fastcall
InboundSoundButtonClick
(
TObject
*
Sender
);
void
__fastcall
OutboundSoundButtonClick
(
TObject
*
Sender
);
void
__fastcall
FormShow
(
TObject
*
Sender
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment