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
e6d45b5e
Commit
e6d45b5e
authored
15 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Added menu option to set maximum QWK message age.
parent
a053622b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/scfg/scfgmsg.c
+35
-13
35 additions, 13 deletions
src/sbbs3/scfg/scfgmsg.c
with
35 additions
and
13 deletions
src/sbbs3/scfg/scfgmsg.c
+
35
−
13
View file @
e6d45b5e
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* *
* Copyright 200
3
Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 200
9
Rob Swindell - http://www.synchro.net/copyright.html *
* *
* *
* This program is free software; you can redistribute it and/or *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
* modify it under the terms of the GNU General Public License *
...
@@ -764,6 +764,12 @@ void msg_opts()
...
@@ -764,6 +764,12 @@ void msg_opts()
sprintf
(
str
,
"Unlimited"
);
sprintf
(
str
,
"Unlimited"
);
sprintf
(
opt
[
i
++
],
"%-33.33s%s"
sprintf
(
opt
[
i
++
],
"%-33.33s%s"
,
"Maximum QWK Messages"
,
str
);
,
"Maximum QWK Messages"
,
str
);
if
(
cfg
.
max_qwkmsgage
)
sprintf
(
str
,
"%u days"
,
cfg
.
max_qwkmsgage
);
else
sprintf
(
str
,
"Unlimited"
);
sprintf
(
opt
[
i
++
],
"%-33.33s%s"
,
"Maximum QWK Message Age"
,
str
);
sprintf
(
opt
[
i
++
],
"%-33.33s%s"
,
"Pre-pack QWK Requirements"
,
cfg
.
preqwk_arstr
);
sprintf
(
opt
[
i
++
],
"%-33.33s%s"
,
"Pre-pack QWK Requirements"
,
cfg
.
preqwk_arstr
);
if
(
cfg
.
mail_maxage
)
if
(
cfg
.
mail_maxage
)
sprintf
(
str
,
"Enabled (%u days old)"
,
cfg
.
mail_maxage
);
sprintf
(
str
,
"Enabled (%u days old)"
,
cfg
.
mail_maxage
);
...
@@ -1075,6 +1081,22 @@ QWK network nodes (Q restriction). If set to 0, no limit is imposed.
...
@@ -1075,6 +1081,22 @@ QWK network nodes (Q restriction). If set to 0, no limit is imposed.
case
4
:
case
4
:
SETHELP
(
WHERE
);
SETHELP
(
WHERE
);
/*
/*
`Maximum Age of Messages Imported From QWK Packets:`
This is the maximum age of messages (in days), allowed for messages in
QWK packets. Messages with an age older than this value will not be
imported. If set to `0`, no age limit is imposed.
*/
itoa
(
cfg
.
max_qwkmsgage
,
str
,
10
);
uifc
.
input
(
WIN_MID
|
WIN_SAV
,
0
,
0
,
"Maximum Age (in days) of QWK-imported Messages (0=No Limit)"
,
str
,
4
,
K_NUMBER
|
K_EDIT
);
cfg
.
max_qwkmsgage
=
atoi
(
str
);
break
;
case
5
:
SETHELP
(
WHERE
);
/*
Pre-pack QWK Requirements:
Pre-pack QWK Requirements:
ALL user accounts on the BBS meeting this requirmenet will have a QWK
ALL user accounts on the BBS meeting this requirmenet will have a QWK
...
@@ -1088,7 +1110,7 @@ system (in the DATA\FILE directory).
...
@@ -1088,7 +1110,7 @@ system (in the DATA\FILE directory).
*/
*/
getar
(
"Pre-pack QWK (Use with caution!)"
,
cfg
.
preqwk_arstr
);
getar
(
"Pre-pack QWK (Use with caution!)"
,
cfg
.
preqwk_arstr
);
break
;
break
;
case
5
:
case
6
:
sprintf
(
str
,
"%u"
,
cfg
.
mail_maxage
);
sprintf
(
str
,
"%u"
,
cfg
.
mail_maxage
);
SETHELP
(
WHERE
);
SETHELP
(
WHERE
);
/*
/*
...
@@ -1100,7 +1122,7 @@ This value is the maximum number of days that mail will be kept.
...
@@ -1100,7 +1122,7 @@ This value is the maximum number of days that mail will be kept.
"(in days)"
,
str
,
5
,
K_EDIT
|
K_NUMBER
);
"(in days)"
,
str
,
5
,
K_EDIT
|
K_NUMBER
);
cfg
.
mail_maxage
=
atoi
(
str
);
cfg
.
mail_maxage
=
atoi
(
str
);
break
;
break
;
case
6
:
case
7
:
strcpy
(
opt
[
0
],
"Daily"
);
strcpy
(
opt
[
0
],
"Daily"
);
strcpy
(
opt
[
1
],
"Immediately"
);
strcpy
(
opt
[
1
],
"Immediately"
);
opt
[
2
][
0
]
=
0
;
opt
[
2
][
0
]
=
0
;
...
@@ -1128,7 +1150,7 @@ day.
...
@@ -1128,7 +1150,7 @@ day.
cfg
.
sys_misc
|=
SM_DELEMAIL
;
cfg
.
sys_misc
|=
SM_DELEMAIL
;
uifc
.
changes
=
1
;
}
uifc
.
changes
=
1
;
}
break
;
break
;
case
7
:
case
8
:
sprintf
(
str
,
"%lu"
,
cfg
.
mail_maxcrcs
);
sprintf
(
str
,
"%lu"
,
cfg
.
mail_maxcrcs
);
SETHELP
(
WHERE
);
SETHELP
(
WHERE
);
/*
/*
...
@@ -1142,7 +1164,7 @@ CRCs will be automatically purged.
...
@@ -1142,7 +1164,7 @@ CRCs will be automatically purged.
"CRCs"
,
str
,
5
,
K_EDIT
|
K_NUMBER
);
"CRCs"
,
str
,
5
,
K_EDIT
|
K_NUMBER
);
cfg
.
mail_maxcrcs
=
atol
(
str
);
cfg
.
mail_maxcrcs
=
atol
(
str
);
break
;
break
;
case
8
:
case
9
:
strcpy
(
opt
[
0
],
"Yes"
);
strcpy
(
opt
[
0
],
"Yes"
);
strcpy
(
opt
[
1
],
"No"
);
strcpy
(
opt
[
1
],
"No"
);
opt
[
2
][
0
]
=
0
;
opt
[
2
][
0
]
=
0
;
...
@@ -1164,7 +1186,7 @@ anonymously, set this option to Yes.
...
@@ -1164,7 +1186,7 @@ anonymously, set this option to Yes.
cfg
.
sys_misc
&=~
SM_ANON_EM
;
cfg
.
sys_misc
&=~
SM_ANON_EM
;
uifc
.
changes
=
1
;
}
uifc
.
changes
=
1
;
}
break
;
break
;
case
9
:
case
10
:
strcpy
(
opt
[
0
],
"Yes"
);
strcpy
(
opt
[
0
],
"Yes"
);
strcpy
(
opt
[
1
],
"No"
);
strcpy
(
opt
[
1
],
"No"
);
opt
[
2
][
0
]
=
0
;
opt
[
2
][
0
]
=
0
;
...
@@ -1186,7 +1208,7 @@ responding in E-mail, set this option to Yes.
...
@@ -1186,7 +1208,7 @@ responding in E-mail, set this option to Yes.
cfg
.
sys_misc
&=~
SM_QUOTE_EM
;
cfg
.
sys_misc
&=~
SM_QUOTE_EM
;
uifc
.
changes
=
1
;
}
uifc
.
changes
=
1
;
}
break
;
break
;
case
1
0
:
case
1
1
:
strcpy
(
opt
[
0
],
"Yes"
);
strcpy
(
opt
[
0
],
"Yes"
);
strcpy
(
opt
[
1
],
"No"
);
strcpy
(
opt
[
1
],
"No"
);
opt
[
2
][
0
]
=
0
;
opt
[
2
][
0
]
=
0
;
...
@@ -1208,7 +1230,7 @@ an E-mail message, set this option to Yes.
...
@@ -1208,7 +1230,7 @@ an E-mail message, set this option to Yes.
cfg
.
sys_misc
&=~
SM_FILE_EM
;
cfg
.
sys_misc
&=~
SM_FILE_EM
;
uifc
.
changes
=
1
;
}
uifc
.
changes
=
1
;
}
break
;
break
;
case
1
1
:
case
1
2
:
strcpy
(
opt
[
0
],
"Yes"
);
strcpy
(
opt
[
0
],
"Yes"
);
strcpy
(
opt
[
1
],
"No"
);
strcpy
(
opt
[
1
],
"No"
);
opt
[
2
][
0
]
=
0
;
opt
[
2
][
0
]
=
0
;
...
@@ -1231,7 +1253,7 @@ set this option to Yes.
...
@@ -1231,7 +1253,7 @@ set this option to Yes.
cfg
.
sys_misc
&=~
SM_FWDTONET
;
cfg
.
sys_misc
&=~
SM_FWDTONET
;
uifc
.
changes
=
1
;
}
uifc
.
changes
=
1
;
}
break
;
break
;
case
1
2
:
case
1
3
:
strcpy
(
opt
[
0
],
"Yes"
);
strcpy
(
opt
[
0
],
"Yes"
);
strcpy
(
opt
[
1
],
"No"
);
strcpy
(
opt
[
1
],
"No"
);
opt
[
2
][
0
]
=
0
;
opt
[
2
][
0
]
=
0
;
...
@@ -1253,7 +1275,7 @@ automatically deleted when message base maintenance is run.
...
@@ -1253,7 +1275,7 @@ automatically deleted when message base maintenance is run.
cfg
.
sys_misc
&=~
SM_DELREADM
;
cfg
.
sys_misc
&=~
SM_DELREADM
;
uifc
.
changes
=
1
;
}
uifc
.
changes
=
1
;
}
break
;
break
;
case
1
3
:
case
1
4
:
strcpy
(
opt
[
0
],
"Yes"
);
strcpy
(
opt
[
0
],
"Yes"
);
strcpy
(
opt
[
1
],
"No"
);
strcpy
(
opt
[
1
],
"No"
);
opt
[
2
][
0
]
=
0
;
opt
[
2
][
0
]
=
0
;
...
@@ -1277,7 +1299,7 @@ addressed to a user's real name (rather than their alias).
...
@@ -1277,7 +1299,7 @@ addressed to a user's real name (rather than their alias).
uifc
.
changes
=
1
;
uifc
.
changes
=
1
;
}
}
break
;
break
;
case
1
4
:
case
1
5
:
n
=
(
cfg
.
sub
[
i
]
->
misc
&
MM_EMAILSIG
)
?
0
:
1
;
n
=
(
cfg
.
sub
[
i
]
->
misc
&
MM_EMAILSIG
)
?
0
:
1
;
strcpy
(
opt
[
0
],
"Yes"
);
strcpy
(
opt
[
0
],
"Yes"
);
strcpy
(
opt
[
1
],
"No"
);
strcpy
(
opt
[
1
],
"No"
);
...
@@ -1303,7 +1325,7 @@ messages, set this option to ~Yes~.
...
@@ -1303,7 +1325,7 @@ messages, set this option to ~Yes~.
cfg
.
msg_misc
&=~
MM_EMAILSIG
;
cfg
.
msg_misc
&=~
MM_EMAILSIG
;
}
}
break
;
break
;
case
1
5
:
case
1
6
:
strcpy
(
opt
[
0
],
"Yes"
);
strcpy
(
opt
[
0
],
"Yes"
);
strcpy
(
opt
[
1
],
"No"
);
strcpy
(
opt
[
1
],
"No"
);
strcpy
(
opt
[
2
],
"Sysops Only"
);
strcpy
(
opt
[
2
],
"Sysops Only"
);
...
@@ -1340,7 +1362,7 @@ appropriate) can view deleted messages.
...
@@ -1340,7 +1362,7 @@ appropriate) can view deleted messages.
cfg
.
sys_misc
&=~
SM_USRVDELM
;
cfg
.
sys_misc
&=~
SM_USRVDELM
;
uifc
.
changes
=
1
;
}
uifc
.
changes
=
1
;
}
break
;
break
;
case
1
6
:
case
1
7
:
SETHELP
(
WHERE
);
SETHELP
(
WHERE
);
/*
/*
Extra Attribute Codes...
Extra Attribute Codes...
...
...
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