🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #78233

Re: Broken "Newsgroups:" headers from GoogleGroups?

#78233
From: Julien ÉLIE
Date: Mon, 26 Nov 2007 19:53
68 lines
3393 bytes
Hi Bert,

>>>> My server is running INN 2.2.2 but is fed by a system running
>>>> DNEWS.
>>>
>>> I receive them well on INN 2.4.3 (and also 2.5) :
>>
>> I'd probably handle them as well, if they ever made it here.
>
> No, it won't.
>
> I just looked in the ->other log, /var/log/news/news, and it's full
> of "437 Whitespace in "Newsgroups" header -- ..."

There is a patch from Roy Hooper (commited by kondou on May, 13th 2000
on the INN 2.4 branch):

- patch for innd/art.c that stops the server from rejecting articles with
  whitespace in the Newsgroups line


--- /svn/INN/branches/2.4/innd/art.c (revision 3235)
+++ /svn/INN/branches/2.4/innd/art.c (revision 3236)
@@ -888,12 +888,30 @@
     /* Colon or whitespace in the Newsgroups header? */
     if (strchr(HDR(_newsgroups), ':') != NULL)
  return "Colon in \"Newsgroups\" header";
+
+    /* Whitespace - clean the header up instead of rejecting it.  Too many
+       servers are passing articles with whitespace along these days.  On
+       May 12th, 2000, I rejected 18468 of 578846 articles because of this
+       lack of adherence to standards. -rhooper@thetoybox.org 2000/05/12 */
     for (p = HDR(_newsgroups); *p; p++)
  if (ISWHITE(*p)) {
-     (void)sprintf(buff,
-      "Whitespace in \"Newsgroups\" header -- \"%s\"",
-      MaxLength(HDR(_newsgroups), p));
-     return buff;
+     /* Fix whitspace */
+     char *wsp = HDR(_newsgroups);
+     int x,y,s;
+
+     for (s=x=y=0; y < ARTheaders[_newsgroups].Length; x++)
+     {
+      while (ISWHITE(wsp[y]) && y < ARTheaders[_newsgroups].Length)
+      {
+        y++;
+        s++;
+      }
+      wsp[x]=wsp[y];
+      y++;
+     }
+     wsp[x]='\0';
+     ARTheaders[_newsgroups].Length-=s;
+     break;
  }

     return NULL;



Regards,

-- 
Julien ÉLIE

« C'est humain, mais il fallait y penser. » (Astérix) 
Technical Details
Message-ID: <fif87v$vqv$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!club-internet.fr!feedme-small.clubint.net!news.netfinity.fr!news.trigofacile.com!not-for-mail
References: <Xns99F390AA4C5D5VeebleFetzer@216.250.184.7> <ficni6$lfk$1@news.trigofacile.com> <Xns99F478B64B471VeebleFetzer@127.0.0.1> <Xns99F485ED610DDVeebleFetzer@127.0.0.1>

Show Full Headers
Complete Article Headers
Message-ID: <fif87v$vqv$1@news.trigofacile.com>
Subject: Re: Broken "Newsgroups:" headers from GoogleGroups?
Date: Mon, 26 Nov 2007 20:53:17 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <Xns99F390AA4C5D5VeebleFetzer@216.250.184.7> <ficni6$lfk$1@news.trigofacile.com> <Xns99F478B64B471VeebleFetzer@127.0.0.1> <Xns99F485ED610DDVeebleFetzer@127.0.0.1>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!club-internet.fr!feedme-small.clubint.net!news.netfinity.fr!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 68
NNTP-Posting-Host: goret.via.ecp.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="Windows-1252";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1196106815 32607 138.195.145.8 (26 Nov 2007
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Mon, 26 Nov 2007 19:53:35 +0000 (UTC)
In-Reply-To: <Xns99F485ED610DDVeebleFetzer@127.0.0.1>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6000.16480
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16545