Skip to content
Snippets Groups Projects
Commit ec234452 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Add support for optiona "approved" option to be specify moderator's email addr

Apparently required by some news servers.
As requested via IRC:
<poindexter> Hi all, I've got a weird request. I'd like to post to a newsgroup that relies on automoderation. You need to add an approved: header to any posting to have it be accepted - keeps the non-techie riffraff away. is there a way to do that with newslink.js?
parent a50517e4
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -161,6 +161,7 @@ var interface_ip_address=0;
var port_set=false;
var tls=false;
var no_path=false;
var approved;
var area = {};
if(this.server!=undefined)
......@@ -256,6 +257,9 @@ while(!cfg_file.eof) {
case "max_newsgroups_per_article":
max_newsgroups_per_article=parseInt(str[1]);
break;
case "approved":
approved = str[1];
break;
default:
print("!UNRECOGNIZED configuration keyword: " + str[0]);
break;
......@@ -555,6 +559,9 @@ for(sub in area) {
+ "]"
);
if(approved)
writeln("Approved: " + approved);
writeln("");
if(hdr.to.toLowerCase()!="all") {
writeln(" To: " + hdr.to);
......
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