diff --git a/exec/newslink.js b/exec/newslink.js index cc7c4530733f5ce5130c956b77b56862d661f821..f4bd90ff23ee68437e1dc27b502b690bdaf28720 100644 --- a/exec/newslink.js +++ b/exec/newslink.js @@ -319,6 +319,8 @@ for(i in area) { if(hdr.newsgroups==undefined) hdr.newsgroups=newsgroup; writeln("Newsgroups: " + hdr.newsgroups); + if(hdr.replyto!=undefined) + writeln("Reply-To: " + hdr.replyto); if(hdr.reply_id!=undefined) writeln("References: " + hdr.reply_id); writeln("X-Gateway: " @@ -446,12 +448,14 @@ for(i in area) { continue; data=line.slice(sp+1); - while(data.charAt(0)==' ') // skip prepended spaces + while(data.charAt(0)==' ') // trim prepended spaces data=data.slice(1); + data=truncsp(data); // trim trailing spaces line=line.substr(0,sp); - while(line.charAt(0)==' ') // skip prepended spaces + while(line.charAt(0)==' ') // trim prepended spaces line=line.slice(1); + line=truncsp(line); // trim trailing spaces switch(line.toLowerCase()) { case "to": @@ -470,6 +474,10 @@ for(i in area) { case "from": hdr.from=data; break; + case "reply-to" + hdr.replyto_net_type=NET_INTERNET; + hdr.replyto=data; + break; case "date": hdr.date=data; break;