🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
13 messages
13 total messages Started by Bert Hyman Sun, 25 Nov 2007 20:12
Broken "Newsgroups:" headers from GoogleGroups?
#78228
Author: Bert Hyman
Date: Sun, 25 Nov 2007 20:12
30 lines
2114 bytes
I just noticed that cross-posted articles originating from Google now
have Newsgroups: headers looking like this: 

Newsgroups: alt.politics, alt.feminism, alt.politics.greens, alt.community,<CR/LF> 
<TAB>	alt.philosophy

RFC-1036 says this about the Newsgroups header:

"Multiple newsgroups may be specified, separated by a comma."

which would seem to make the "comma space" or "comma CR/LF TAB"
sequences questionable.

These articles show up on my ISP's server, but never make it to
my server at work.

My server is running INN 2.2.2 but is fed by a system running DNEWS.

I can't find anything in the DNEWS log about it dropping or
rejecting these articles, but this might just be due to the
fact that the log files it creates are tiny and get over-written
so quickly that I've just never caught one.

I realize that there's a growing sentiment within traditional
USENET to simply say good riddance to GoogleGroups, and I'm
starting to think that way too, but I'm still curious; should
these messages be accepted or rejected?

-- 
Bert Hyman	St. Paul, MN	bert@iphouse.com
Re: Broken "Newsgroups:" headers from GoogleGroups?
#78227
Author: Szymon Sokół
Date: Sun, 25 Nov 2007 20:40
26 lines
2604 bytes
On 25 Nov 2007 20:12:56 GMT, Bert Hyman wrote:

> I just noticed that cross-posted articles originating from Google now
> have Newsgroups: headers looking like this: 
> 
> Newsgroups: alt.politics, alt.feminism, alt.politics.greens, alt.community,<CR/LF> 
> <TAB>	alt.philosophy
> 
> RFC-1036 says this about the Newsgroups header:
> 
> "Multiple newsgroups may be specified, separated by a comma."
> 
> which would seem to make the "comma space" or "comma CR/LF TAB"
> sequences questionable.

I am not sure about the "comma space" but I believe it does not conform to
RFC 1036. However, the "comma CR/LF TAB" sequence is OK. You forgot about a
"higher" rule: that *any* header can have a continuation line (which starts
with a whitespace, in particular TAB, at the beginning, ie. just after
CR/LF). 

-- 
Szymon Sokół (SS316-RIPE) -- Network Manager                                 B
Computer Center, AGH - University of Science and Technology, Cracow, Poland  O
http://home.agh.edu.pl/szymon/ PGP key id: RSA: 0x2ABE016B, DSS: 0xF9289982  F
Free speech includes the right not to listen, if not interested -- Heinlein  H
Re: Broken "Newsgroups:" headers from GoogleGroups?
#78229
Author: Julien ÉLIE
Date: Sun, 25 Nov 2007 20:56
31 lines
2345 bytes
Hi Bert,

> I just noticed that cross-posted articles originating from Google now
> have Newsgroups: headers looking like this:
>
> These articles show up on my ISP's server, but never make it to
> my server at work.
>
> 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) :

25/11 21:54 news@guepard ~% grephistory '<8d860401-9e9f-4ff9-b1ab-faa8121b1793@e1g2000hsh.googlegroups.com>' | sm
Path: news.ecp.fr!news.glorb.com!postnews.google.com!e1g2000hsh.googlegroups.com!not-for-mail
Newsgroups: rec.games.pinball, alt.feminism, alt.politics.greens,
        alt.politics.liberalism, alt.journalism.criticism


> I realize that there's a growing sentiment within traditional
> USENET to simply say good riddance to GoogleGroups, and I'm
> starting to think that way too

http://improve-usenet.org/

Regards,

-- 
Julien ÉLIE

« Non omnibus aegris eadem auxilia conueniunt. » 
Re: Broken "Newsgroups:" headers from GoogleGroups?
#78230
Author: Russ Allbery
Date: Sun, 25 Nov 2007 23:06
25 lines
1965 bytes
Bert Hyman <bert@iphouse.com> writes:

> I just noticed that cross-posted articles originating from Google now
> have Newsgroups: headers looking like this:
>
> Newsgroups: alt.politics, alt.feminism, alt.politics.greens, alt.community,<CR/LF> 
> <TAB>	alt.philosophy
>
> RFC-1036 says this about the Newsgroups header:
>
> "Multiple newsgroups may be specified, separated by a comma."
>
> which would seem to make the "comma space" or "comma CR/LF TAB"
> sequences questionable.

Yup, that article violates RFC 1036.

Some software will be lenient, and some software will treat that article
as posted to alt.politics and a bunch of newsgroups starting with a space.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Broken "Newsgroups:" headers from GoogleGroups?
#78231
Author: Bert Hyman
Date: Mon, 26 Nov 2007 17:51
21 lines
1851 bytes
iulius@nom-de-mon-site.com.invalid (Julien ÉLIE) wrote in
news:ficni6$lfk$1@news.trigofacile.com: 

>> I just noticed that cross-posted articles originating from Google
>> now have Newsgroups: headers looking like this:
>>
>> These articles show up on my ISP's server, but never make it to
>> my server at work.
>>
>> 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.

It looks like the corporate gateway server, running DNEWS, is eating
them. 

-- 
Bert Hyman | St. Paul, MN | bert@iphouse.com
Re: Broken "Newsgroups:" headers from GoogleGroups?
#78232
Author: Bert Hyman
Date: Mon, 26 Nov 2007 19:09
28 lines
1988 bytes
bert@iphouse.com (Bert Hyman) wrote in
news:Xns99F478B64B471VeebleFetzer@127.0.0.1: 

> iulius@nom-de-mon-site.com.invalid (Julien LIE) wrote in
> news:ficni6$lfk$1@news.trigofacile.com: 
> 
>>> I just noticed that cross-posted articles originating from Google
>>> now have Newsgroups: headers looking like this:
>>>
>>> These articles show up on my ISP's server, but never make it to
>>> my server at work.
>>>
>>> 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 -- ..." 

Geez ...

-- 
Bert Hyman | St. Paul, MN | bert@iphouse.com
Re: Broken "Newsgroups:" headers from GoogleGroups?
#78233
Author: 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) 
Re: Broken "Newsgroups:" headers from GoogleGroups?
#78234
Author: Bert Hyman
Date: Mon, 26 Nov 2007 20:59
35 lines
2144 bytes
iulius@nom-de-mon-site.com.invalid (Julien ÉLIE) wrote in
news:fif87v$vqv$1@news.trigofacile.com: 

> 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):
> 
> ...
> 
> Regards,

Thanks!

I just downloaded INN-2.4.3 and was debating going through the agony
of moving up or writing a little piece of code to fix the problem
myself. 

But wait ... Are you saying that this "problem" still exists in 2.4.3 
anyway?

-- 
Bert Hyman | St. Paul, MN | bert@iphouse.com
Re: Broken "Newsgroups:" headers from GoogleGroups?
#78235
Author: Julien ÉLIE
Date: Mon, 26 Nov 2007 21:16
20 lines
2092 bytes
Hi Bert,

>> There is a patch from Roy Hooper (commited by kondou on May, 13th
>> 2000 on the INN 2.4 branch):
>
> But wait ... Are you saying that this "problem" still exists in 2.4.3
> anyway?

No, that problem does not exist in 2.4.3 (the patch was committed --
and I see that "committed' is better with two "t"!).

Do not forget to read how to upgrade 2.2 -> 2.4:

    http://www.eyrie.org/~eagle/software/inn/docs/news.html

-- 
Julien ÉLIE

« Impossible n'est pas gaulois, les amis ! » (Distributiondesprix) 
Re: Broken "Newsgroups:" headers from GoogleGroups?
#78237
Author: Bert Hyman
Date: Tue, 27 Nov 2007 16:56
29 lines
2270 bytes
iulius@nom-de-mon-site.com.invalid (Julien ÉLIE) wrote in
news:fifd4f$4n2$1@news.trigofacile.com: 

> Hi Bert,
> 
>>> There is a patch from Roy Hooper (commited by kondou on May, 13th
>>> 2000 on the INN 2.4 branch):
>>
>> But wait ... Are you saying that this "problem" still exists in
>> 2.4.3 anyway?
> 
> No, that problem does not exist in 2.4.3 (the patch was committed
> -- and I see that "committed' is better with two "t"!).
> 
> Do not forget to read how to upgrade 2.2 -> 2.4:
> 
>     http://www.eyrie.org/~eagle/software/inn/docs/news.html

I've applied that patch to my INN-2.2.2 while I ponder the move to 
INN-2.4.3 and found that it didn't quite work for the severly mangled 
Newsgroups: headers Google is generating at the moment.

The "ISWHITE" macro only treats space and TAB as whitespace, while 
these headers have embedded CR and LF too; easy fix.

Thanks again.

-- 
Bert Hyman | St. Paul, MN | bert@iphouse.com
Re: Broken "Newsgroups:" headers from GoogleGroups?
#78490
Author: Adam H. Kerman
Date: Sun, 06 Jan 2008 00:21
65 lines
3589 bytes
Russ Allbery <rra@stanford.edu> wrote:
>Bert Hyman <bert@iphouse.com> writes:

>>I just noticed that cross-posted articles originating from Google now
>>have Newsgroups: headers looking like this:

>>Newsgroups: alt.politics, alt.feminism, alt.politics.greens,
>>alt.community,<CR/LF> 
>><TAB>	alt.philosophy

>>RFC-1036 says this about the Newsgroups header:

>>"Multiple newsgroups may be specified, separated by a comma."

>>which would seem to make the "comma space" or "comma CR/LF TAB"
>>sequences questionable.

>Yup, that article violates RFC 1036.

>Some software will be lenient, and some software will treat that article
>as posted to alt.politics and a bunch of newsgroups starting with a space.

I've been tripping over this issue with crossposted messages from Google
Groups for the last several months and looked for this old thread.

Today, I encountered such a message, but not from Google Groups. The
News administrator says he's running INN. There were merely two
newsgroups in the crosspost. The Newsgroups header, then, wasn't
particularly long (well under 80 characters) so folding white space
wouldn't even have been an issue!

Why, then, is INN violating RFC 1036 syntax?

In Son-Of, it says there was sentiment at the time to change the
delimiter to comma plus space so there could be folding white space used
for continuation lines; the Newsgroups header syntax doesn't allow
continuation lines. But that was never implemented.

USEFOR says not to generate it, but to accept it.

3.1.4.  Newsgroups

   The Newsgroups header field specifies the newsgroup(s) to which the
   article is posted.

   newsgroups      =  "Newsgroups:" SP newsgroup-list CRLF

   newsgroup-list  =  *WSP newsgroup-name
                      *( [FWS] "," [FWS] newsgroup-name ) *WSP

   newsgroup-name  =  component *( "." component )

   component       =  1*component-char

   component-char  =  ALPHA / DIGIT / "+" / "-" / "_"

   Not all servers support optional FWS in the list of newsgroups.  In
   particular, folding the Newsgroups header field over several lines
   has been shown to harm propagation significantly.  Optional FWS in
   the <newsgroup-list> SHOULD NOT be generated, but MUST be accepted.

So as of a year ago when this latest version of USEFOR was drafted,
folding white space on the Newsgroups header was still controversial.
The delimiter remains the comma; folding white space SHOULD NOT be
generated.
Re: Broken "Newsgroups:" headers from GoogleGroups?
#78491
Author: Russ Allbery
Date: Sun, 06 Jan 2008 00:41
50 lines
3624 bytes
"Adam H. Kerman" <ahk@chinet.com> writes:

> Today, I encountered such a message, but not from Google Groups. The
> News administrator says he's running INN. There were merely two
> newsgroups in the crosspost. The Newsgroups header, then, wasn't
> particularly long (well under 80 characters) so folding white space
> wouldn't even have been an issue!
>
> Why, then, is INN violating RFC 1036 syntax?

I took some time to do a more detailed inspection of the code, and it
looks like, despite comments in the source that indicate the intention was
still to make this check, the rejection of Newsgroup header fields
including whitespace was accidentally dropped in innd as part of a
restructuring of all of the article parsing code for speed in 2001-02-02.
Everything else assumed that innd was still checking and rejecting such
messages.  Looking at the code, the situation right now appears to be
rather screwy, with innd stripping the whitespace and seeing the actual
group names and nnrpd treating the whitespace as part of the group name
and hence not seeing any groups after the first one.

I expect I didn't look beyond the comments and intention of the code when
investigating this for the working group either, and probably wasn't
correct in my assessment of the implementation at the time.

I'm not sure the correct thing to do at this point, although at the moment
the nnrpd code is clearly wrong and needs to move in one direction or the
other.  Given the USEFOR draft, I think the right thing to do would be to
strip the whitespace in nnrpd as well and make innd and nnrpd consistent.

It's currently using strtok, which is not a great idea for other reasons.

> So as of a year ago when this latest version of USEFOR was drafted,
> folding white space on the Newsgroups header was still controversial.

I don't think that's the word that you're looking for.  I don't believe
there was any controversy in the working group over the feature.  It's
just not widely implemented.

> The delimiter remains the comma; folding white space SHOULD NOT be
> generated.

Note that the only part of INN affected by this SHOULD NOT would be inews,
as that's the only part of INN that generates articles.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Broken "Newsgroups:" headers from GoogleGroups?
#78492
Author: Adam H. Kerman
Date: Sun, 06 Jan 2008 03:00
43 lines
3172 bytes
Russ Allbery  <rra@stanford.edu> wrote:
>"Adam H. Kerman" <ahk@chinet.com> writes:

>>Today, I encountered such a message, but not from Google Groups. The
>>News administrator says he's running INN. There were merely two
>>newsgroups in the crosspost. The Newsgroups header, then, wasn't
>>particularly long (well under 80 characters) so folding white space
>>wouldn't even have been an issue!

>>Why, then, is INN violating RFC 1036 syntax?

>I took some time to do a more detailed inspection of the code . . . 

Very interesting. Thank you for taking a look.

>>So as of a year ago when this latest version of USEFOR was drafted,
>>folding white space on the Newsgroups header was still controversial.

>I don't think that's the word that you're looking for.  I don't believe
>there was any controversy in the working group over the feature.  It's
>just not widely implemented.

By "controversy", I assumed that the working group figured that the
ability to use folding white space on that header would be useful but
knew of certain widely-deployed News servers that weren't written to
ignore white space on that header.

>>The delimiter remains the comma; folding white space SHOULD NOT be generated.

>Note that the only part of INN affected by this SHOULD NOT would be inews,
>as that's the only part of INN that generates articles.

That's how I got tripped up. As I still use trn, Pnews performs a few
parsing tasks before passing the message along to inews -h, including
checking for illegal whitespace on that header. trn's philosophy is not
to hide serious syntax errors from the user but to make him fix them
before sending the message out. On followup, trn forms the Newsgroups
header from either the Newsgroups header of the precursor message or,
where it exists, its Followup-To header, retaining whatever errors exist
in those two headers.

I didn't check USEPRO nor USEAGE to see if there was a reference to
Newsgroups header syntax.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads