Skip to content
Snippets Groups Projects
Commit 3e183c34 authored by deuce's avatar deuce
Browse files

Add a 'm' flag to moderate imported messages.

parent 25836578
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......@@ -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++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment