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
b7f1a7f9
Commit
b7f1a7f9
authored
20 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix: the -mail optoin was always enabled.
Added support for -nolimit option to allow unlimited message lengths.
parent
92dce6d1
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
exec/nntpservice.js
+22
-5
22 additions, 5 deletions
exec/nntpservice.js
with
22 additions
and
5 deletions
exec/nntpservice.js
+
22
−
5
View file @
b7f1a7f9
...
...
@@ -4,9 +4,22 @@
// $Id$
// Example configuration (in ctrl/services.cfg):
// NNTP 119 0-unlimited 0 nntpservice.js
// Example configuration (in ctrl/services.ini):
// [NNTP]
// Port = 119
// MaxClients = 10
// Options = 0
// Command = nntpservice.js -f
// Available Command-line options:
//
// -d debug output
// -f filter bogus client IP addresses
// -na no anonymous logins (requires user authentication)
// -mail expose entire mail database as newsgroup to Sysops
// -auto automatic login based on IP address (no password necessary)
// -nolimit unlimited message lengths
// Tested clients:
// Microsoft Outlook Express 6
...
...
@@ -33,7 +46,9 @@ var slave = false;
var
bogus_cmd_counter
=
0
;
var
max_bogus_cmds
=
10
;
var
filter_bogus_clients
=
false
;
var
include_mail
=
true
;
var
include_mail
=
false
;
var
impose_limit
=
true
;
var
sysop_login
=
false
;
// Parse arguments
for
(
i
=
0
;
i
<
argc
;
i
++
)
{
...
...
@@ -45,6 +60,8 @@ for(i=0;i<argc;i++) {
no_anonymous
=
true
;
else
if
(
argv
[
i
].
toLowerCase
()
==
"
-mail
"
)
include_mail
=
true
;
else
if
(
argv
[
i
].
toLowerCase
()
==
"
-nolimit
"
)
impose_limit
=
false
;
else
if
(
argv
[
i
].
toLowerCase
()
==
"
-auto
"
)
{
no_anonymous
=
true
;
auto_login
=
true
;
...
...
@@ -614,7 +631,7 @@ while(client.socket.is_connected && !quit) {
parse_news_header
(
hdr
,
line
);
// from newsutil.js
}
if
(
user
.
limits
!=
undefined
if
(
impose_limit
&&
user
.
limits
!=
undefined
&&
lines
>
user
.
limits
.
lines_per_message
)
{
log
(
format
(
"
!Message of %u lines exceeds user limit (%u lines)
"
,
lines
,
user
.
limits
.
lines_per_message
));
...
...
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