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
3e183c34
Commit
3e183c34
authored
12 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Add a 'm' flag to moderate imported messages.
parent
25836578
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/newslink.txt
+2
-1
2 additions, 1 deletion
docs/newslink.txt
exec/newslink.js
+3
-0
3 additions, 0 deletions
exec/newslink.js
with
5 additions
and
1 deletion
docs/newslink.txt
+
2
−
1
View file @
3e183c34
...
...
@@ -142,6 +142,7 @@ r remove "Newsgroups:" header field from imported messages
b decode single-part (uuencoded or yenc-encoded) binary attachments
i import all articles on first run (not just new articles)
s no subject filtering (do not check against text/subject.can)
m moderate imported messages (a subop will need to validate every message)
To specify one or more flag characters for a specific area, you must use the
following "AREA" line syntax:
...
...
@@ -230,4 +231,4 @@ JSexec
With Synchronet v3.11, it is also possible to run NewsLink externally from
Synchronet (or as a background timed event) by using JSexec.
/* End of file */
\ No newline at end of file
/* End of file */
This diff is collapsed.
Click to expand it.
exec/newslink.js
+
3
−
0
View file @
3e183c34
...
...
@@ -24,6 +24,7 @@
// b decode binary attachments
// i import all (not just new articles)
// s no subject filtering
// m Moderate imported messages
const
REVISION
=
"
$Revision$
"
.
split
(
'
'
)[
1
];
...
...
@@ -879,6 +880,8 @@ for(i in area) {
// hdr.from_net_addr=hdr.from;
if
(
flags
.
indexOf
(
'
t
'
)
==-
1
)
body
+=
tearline
;
if
(
flags
.
indexOf
(
'
m
'
)
==-
1
)
hdr
.
attr
|=
MSG_MODERATED
;
if
(
msgbase
.
save_msg
(
hdr
,
body
))
{
imported
++
;
subimported
++
;
...
...
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