Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit ec234452 authored by Rob Swindell's avatar Rob Swindell 💬

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
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment