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

Commits (1)
  • Rob Swindell's avatar
    Add support for optiona "approved" option to be specify moderator's email addr · ec234452
    Rob Swindell authored
    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?
    ec234452
...@@ -161,6 +161,7 @@ var interface_ip_address=0; ...@@ -161,6 +161,7 @@ var interface_ip_address=0;
var port_set=false; var port_set=false;
var tls=false; var tls=false;
var no_path=false; var no_path=false;
var approved;
var area = {}; var area = {};
if(this.server!=undefined) if(this.server!=undefined)
...@@ -256,6 +257,9 @@ while(!cfg_file.eof) { ...@@ -256,6 +257,9 @@ while(!cfg_file.eof) {
case "max_newsgroups_per_article": case "max_newsgroups_per_article":
max_newsgroups_per_article=parseInt(str[1]); max_newsgroups_per_article=parseInt(str[1]);
break; break;
case "approved":
approved = str[1];
break;
default: default:
print("!UNRECOGNIZED configuration keyword: " + str[0]); print("!UNRECOGNIZED configuration keyword: " + str[0]);
break; break;
...@@ -555,6 +559,9 @@ for(sub in area) { ...@@ -555,6 +559,9 @@ for(sub in area) {
+ "]" + "]"
); );
if(approved)
writeln("Approved: " + approved);
writeln(""); writeln("");
if(hdr.to.toLowerCase()!="all") { if(hdr.to.toLowerCase()!="all") {
writeln(" To: " + hdr.to); writeln(" To: " + hdr.to);
......