🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
18 messages
18 total messages Started by Florian Zschocke Sun, 04 Feb 2007 13:42
XHDR with message-id
#74816
Author: Florian Zschocke
Date: Sun, 04 Feb 2007 13:42
34 lines
2338 bytes
Hello NG,

I try to get the newsgroups for a given message-id. My server replies 
only with a dot. See log below. Is there no way to do the XHDR command 
with a message-id.

Thank you for your time and help

---------------------------------------------------------------------
200 newsspool4.arcor-online.net - Welcome to Arcor NNRP service - for 
problems mailto adm-news@arcor.de (posting ok)
authinfo user **********
381 PASS required
authinfo pass **********
281 Ok
XHDR newsgroups <45bfb988$0$18845$9b4e6d93@newsspool4.arcor-
online.net>
221 newsgroups data follows
 .
XHDR Newsgroups <45bfb988$0$18845$9b4e6d93@newsspool4.arcor-
online.net>
221 Newsgroups data follows
 .
XHDR subject <45bfb988$0$18845$9b4e6d93@newsspool4.arcor-online.net>            
221 subject data follows
 .
XHDR subject 45a19529$0$27621$9b4e6d93@newsspool2.arcor-online.net
412 Not in a newsgroup
group de.comp.sys.mac.programmer.help
411 No such group de.comp.sys.mac.programmer.help
group de.comp.sys.mac.programmieren
211 313 8159 8471 de.comp.sys.mac.programmieren
XHDR subject <45a19529$0$27621$9b4e6d93@newsspool2.arcor-online.net>
221 subject data follows
Re: XHDR with message-id
#74815
Author: Jeffrey M. Vinocur
Date: Sun, 04 Feb 2007 15:15
56 lines
2673 bytes
In article <F98FA266-420E-460C-8F2D-18899C4AC8D8%edv@zschocke-berlin.de>,
Florian Zschocke  <edv@zschocke-berlin.de> wrote:
>
>I try to get the newsgroups for a given message-id. My server replies 
>only with a dot. See log below. Is there no way to do the XHDR command 
>with a message-id.

It should work:

    200 news.litech.org InterNetNews server INN 2.4.3 ready

    MODE READER
    200 news.litech.org InterNetNews NNRP server INN 2.4.3 ready
    (posting ok).

    GROUP alt.dev.null
    211 4 1296 1299 alt.dev.null

    XHDR Message-ID 1-
    221 Message-ID matches follow (NOV)
    1296 <45ab433b.595165966@news.xs4all.nl>
    1297 <45b374b0.16035437@news.xs4all.nl>
    1298 <peawee-358B36.16471125012007@news.ks.uiuc.edu>
    1299 <45baaa71$0$28152$4c368faf@roadrunner.com>
    .

    XHDR Subject <45ab433b.595165966@news.xs4all.nl>
    221 Subject matches follow (ID)
    <45ab433b.595165966@news.xs4all.nl> Re: The CPU vs the GPU
    contest.
    .


>200 newsspool4.arcor-online.net - Welcome to Arcor NNRP service - for 
>problems mailto adm-news@arcor.de (posting ok)
>authinfo user **********
>381 PASS required
>authinfo pass **********
>281 Ok
>XHDR newsgroups <45bfb988$0$18845$9b4e6d93@newsspool4.arcor-
>online.net>
>221 newsgroups data follows
> .

I have a few ideas:

  - perhaps you don't have access to the article for some reason;
    does using the HEAD command (with the same Message-ID) work?

  - perhaps the software your server is using is broken?  It
    doesn't look like INN, from the welcome banner


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: XHDR with message-id
#74817
Author: Curt Welch
Date: Sun, 04 Feb 2007 16:15
87 lines
5377 bytes
Florian Zschocke <edv@zschocke-berlin.de> wrote:
> Hello NG,
>
> I try to get the newsgroups for a given message-id. My server replies
> only with a dot. See log below. Is there no way to do the XHDR command
> with a message-id.
>
> Thank you for your time and help
>
> ---------------------------------------------------------------------
> 200 newsspool4.arcor-online.net - Welcome to Arcor NNRP service - for
> problems mailto adm-news@arcor.de (posting ok)
> authinfo user **********
> 381 PASS required
> authinfo pass **********
> 281 Ok
> XHDR newsgroups <45bfb988$0$18845$9b4e6d93@newsspool4.arcor-
> online.net>
> 221 newsgroups data follows
>  .
> XHDR Newsgroups <45bfb988$0$18845$9b4e6d93@newsspool4.arcor-
> online.net>
> 221 Newsgroups data follows
>  .
> XHDR subject <45bfb988$0$18845$9b4e6d93@newsspool4.arcor-online.net>
> 221 subject data follows
>  .
> XHDR subject 45a19529$0$27621$9b4e6d93@newsspool2.arcor-online.net
> 412 Not in a newsgroup
> group de.comp.sys.mac.programmer.help
> 411 No such group de.comp.sys.mac.programmer.help
> group de.comp.sys.mac.programmieren
> 211 313 8159 8471 de.comp.sys.mac.programmieren
> XHDR subject <45a19529$0$27621$9b4e6d93@newsspool2.arcor-online.net>
> 221 subject data follows

That's a diablo box.

The diablo machines I have access don't work for xhdr by message-id.  XHDR
by Message-id is a non standard NNTP feature.  I guess diablo didn't
implement it - but it's strange that it doesnt produce an error yet also
doesn't return the correct data.  But my diablo box is doing the same thing
yours is - it just returns no data.

The standard way to do it it to just do a HEAD <mid> and get the entire
header and then parse out what you want from it (the Xref: header).

However, Diablo sucks in yet another way.  When you do a head by Message-ID
it returns the article from the spool instead of returning the article head
from the front end server.  And when it does that, the copy of the article
in the spool doesn't have a valid Xref: header in it - so you aren't going
to be able to figure out the article number (unless the diablo system you
are using is set up different from most Diablo systems).

This happens because diablo systems tend to be configured to use a
head-only box to assign the article numbers - so only the article headers
get valid Xref headers in them and only the front end servers have copies
of the headers with the valid Xref header.  But the front end servers don't
keep an index of article headers by Message-ID.  It only indexes them by
group and article number.  So that's why the front end server doesn't
return it's copy of the header when you do a HEAD by Message-Id.  It gets
it from the back end spool servers which don't have the version of the
articles with valid Xref: headers.

The only way with a normal Diablo system to find the article number given
an Message-ID is to first do a HEAD, and look at the Newsgroups: header to
find the newsgroups it was posted to.  Then select that group, and dump all
the Message-IDs of every article in the group using "XHDR 1-" and scan all
that data to find the Message-ID you are looking for along with its article
number.

For large groups where you don't want to dump a few million articles to
find it, I guess you could use the date in the article and do a binary
search of the articles to narrow down the article number range you have to
search.

Diablo servers basically gave up the ability to do what you want to do in
trade for simplicity of the system.  It meant the article numbering box
only had to be large enough to keep up with a full head feed (1 Mbit),
instead of keeping up with a article feed (300 Mbits), and it meant the
front end servers didn't have to keep a history file (Message-ID index).
There are many ways that this could be fixed, but it would make Diablo more
complex in all cases.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Re: XHDR with message-id
#74818
Author: Jeffrey M. Vinocur
Date: Sun, 04 Feb 2007 17:08
11 lines
1296 bytes
In article <20070204111543.831$CP@newsreader.com>,
Curt Welch <curt@kcwc.com> wrote:
>
>XHDR by Message-id is a non standard NNTP feature.

What's non-standard about it?


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: XHDR with message-id
#74820
Author: Florian Zschocke
Date: Sun, 04 Feb 2007 17:28
22 lines
2128 bytes
curt@kcwc.com (Curt Welch) schrieb:
 
> That's a diablo box.
> 
Why can't we have a server-identification-string with server, version, e.c.t., 
like every browser has. We could have that in the welcome message.
I think that would be a no big risk, cause a spammer/hacker would always try 
each exploit on every server.

> The diablo machines I have access don't work for xhdr by message-id.  XHDR
> by Message-id is a non standard NNTP feature.  I guess diablo didn't
> implement it - but it's strange that it doesnt produce an error yet also
> doesn't return the correct data.  But my diablo box is doing the same thing
> yours is - it just returns no data.
> 

That would not help on a server with bad configuration but it would make it 
much easier to develop a reader with intelligent features. I also believe that 
it would speedup the development of intelligent servers.

Thanks Florian    
Re: XHDR with message-id
#74819
Author: Curt Welch
Date: Sun, 04 Feb 2007 18:13
25 lines
2459 bytes
jeff@litech.org (Jeffrey M. Vinocur) wrote:
> In article <20070204111543.831$CP@newsreader.com>,
> Curt Welch <curt@kcwc.com> wrote:
> >
> >XHDR by Message-id is a non standard NNTP feature.
>
> What's non-standard about it?

Hum.  Looks like my memory is a bit off.  I can't find any documentation on
xhdr that doesn't include fetching by message-id as an option.  Looks like
it's always been part of xhdr.  I included it in my server.

I wonder if I'm remembering some old implementation of XHDR?  Where was it
fist implemented?  Anyone remember?  INN?  nntp reference code?  Anyone got
a copy of the code to see if the first version included fetching by
Message-ID?

I wonder why it doesn't work in Diablo?  Did someone break Diablo and it
was never noticed or was it never correctly implemented?  It's nothing more
than a head command with output filtering added so there's no reason for it
not to work.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Re: XHDR with message-id
#74821
Author: Peter Robinson
Date: Sun, 04 Feb 2007 18:30
14 lines
1352 bytes
Jeffrey M. Vinocur <jeff@litech.org> wrote:

> In article <20070204111543.831$CP@newsreader.com>,
> Curt Welch <curt@kcwc.com> wrote:
>
> >XHDR by Message-id is a non standard NNTP feature.
> 
> What's non-standard about it?

Starts with an X!  Written up in RFC2980 and reasonably widely
implemented though.  Now standardised as HDR by RFC3977, but I imagine
XHDR is still much more common.

Peter
Re: XHDR with message-id
#74822
Author: Russ Allbery
Date: Sun, 04 Feb 2007 19:33
16 lines
1854 bytes
Curt Welch <curt@kcwc.com> writes:

> I wonder if I'm remembering some old implementation of XHDR?  Where was
> it fist implemented?  Anyone remember?  INN?  nntp reference code?
> Anyone got a copy of the code to see if the first version included
> fetching by Message-ID?

XHDR has been in INN since INN 1.0 (1991) and has always supported
retrieving by message ID, so you're probably looking for NNTP reference
code.  I don't have historical versions of that.

-- 
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: XHDR with message-id
#74824
Author: Russ Allbery
Date: Sun, 04 Feb 2007 19:34
18 lines
1899 bytes
Florian Zschocke <edv@zschocke-berlin.de> writes:
> curt@kcwc.com (Curt Welch) schrieb:

>> That's a diablo box.

> Why can't we have a server-identification-string with server, version,
> e.c.t., like every browser has. We could have that in the welcome
> message.  I think that would be a no big risk, cause a spammer/hacker
> would always try each exploit on every server.

The new NNTP standard adds an optional capability for this, but not many
people (myself included) have had a chance to implement it yet.

-- 
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: XHDR with message-id
#74825
Author: nukleus
Date: Mon, 05 Feb 2007 00:47
16 lines
1863 bytes
In article <87lkjd90pi.fsf@windlord.stanford.edu>, Russ Allbery 
<rra@stanford.edu> wrote:
>Florian Zschocke <edv@zschocke-berlin.de> writes:
>> curt@kcwc.com (Curt Welch) schrieb:
>
>>> That's a diablo box.
>
>> Why can't we have a server-identification-string with server, version,
>> e.c.t., like every browser has. We could have that in the welcome
>> message.  I think that would be a no big risk, cause a spammer/hacker
>> would always try each exploit on every server.
>
>The new NNTP standard adds an optional capability for this, but not many
>people (myself included) have had a chance to implement it yet.

What have you done to big-8, you stupid nazi?
Re: XHDR with message-id
#74830
Author: Jeffrey M. Vinocur
Date: Mon, 05 Feb 2007 02:41
22 lines
1787 bytes
In article <1ht0w8x.5kywqb30hm7qN%pmrobinson@gmx.net>,
Peter Robinson <pmrobinson@gmx.net> wrote:
>Jeffrey M. Vinocur <jeff@litech.org> wrote:
>> Curt Welch <curt@kcwc.com> wrote:
>>
>> >XHDR by Message-id is a non standard NNTP feature.
>> 
>> What's non-standard about it?
>
>Starts with an X!  Written up in RFC2980 and reasonably widely
>implemented though.  Now standardised as HDR by RFC3977, but I imagine
>XHDR is still much more common.

Err, yes, I know.

However, XHDR by Message-ID is no more non-standard than any
other sort of XHDR, and that's the point under discussion.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: XHDR with message-id
#74827
Author: Francois Petillon
Date: Mon, 05 Feb 2007 12:19
15 lines
1968 bytes
On Sun, 04 Feb 2007 18:13:50 +0000, Curt Welch wrote:
> I wonder why it doesn't work in Diablo?  Did someone break Diablo and it
> was never noticed or was it never correctly implemented?  It's nothing more
> than a head command with output filtering added so there's no reason for it
> not to work.

It was never implemented at all : the function returns an empty list. In
fact, all commands based on overviews (xpat, xhdr, hdr) will work the
same.

Making it work is do-able but, as far as I am concerned, I do not wish to
retrieve an header from a spooler simply to extract a single line out of
it.

François
Re: XHDR with message-id
#74828
Author: Curt Welch
Date: Mon, 05 Feb 2007 17:31
28 lines
2659 bytes
Francois Petillon <fanch@fanfan.staff.proxad.net> wrote:
> On Sun, 04 Feb 2007 18:13:50 +0000, Curt Welch wrote:
> > I wonder why it doesn't work in Diablo?  Did someone break Diablo and
> > it was never noticed or was it never correctly implemented?  It's
> > nothing more than a head command with output filtering added so there's
> > no reason for it not to work.
>
> It was never implemented at all : the function returns an empty list. In
> fact, all commands based on overviews (xpat, xhdr, hdr) will work the
> same.

That would explain it.

> Making it work is do-able but, as far as I am concerned, I do not wish to
> retrieve an header from a spooler simply to extract a single line out of
> it.
>
> François

Yeah, it would be better (but harder) for the front end spoolers to keep a
history index that allowed them to locate the header in the front end
database.  That would make xref usable again and keep the header load off
the spoolers.  It would still allow the users to put a higher load on the
front end however.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Re: XHDR with message-id
#74829
Author: Francois Petillon
Date: Mon, 05 Feb 2007 17:45
13 lines
2076 bytes
On Mon, 05 Feb 2007 17:31:10 +0000, Curt Welch wrote:
> Yeah, it would be better (but harder) for the front end spoolers to keep a
> history index that allowed them to locate the header in the front end
> database.  That would make xref usable again and keep the header load off
> the spoolers.  It would still allow the users to put a higher load on the
> front end however.

It would be a usefullness effort to manage such a history while it would
be really never used excepted by people by hand. If it had to be really
needed, I would prefer adding a innd or a header-only spooler in
my nntp cluster and have the front-end to proxy for such requests...

François
Re: XHDR with message-id
#74834
Author: Francois Petillon
Date: Mon, 05 Feb 2007 17:55
14 lines
2064 bytes
On Sun, 04 Feb 2007 16:15:15 +0000, Curt Welch wrote:
> However, Diablo sucks in yet another way.  When you do a head by Message-ID
> it returns the article from the spool instead of returning the article head
> from the front end server.  And when it does that, the copy of the article
> in the spool doesn't have a valid Xref: header in it - so you aren't going
> to be able to figure out the article number (unless the diablo system you
> are using is set up different from most Diablo systems).

In fact, it would not be that difficult to have a valid Xref in reply to
head request. You would need to set a header-only spooler and a patched
dreaderd that would allow to specify whose spoolers have only headers.
But you would still miss Xref in article replies.

François
Re: XHDR with message-id
#74833
Author: Francois Petillon
Date: Mon, 05 Feb 2007 18:06
14 lines
2044 bytes
On Sun, 04 Feb 2007 16:15:15 +0000, Curt Welch wrote:
> However, Diablo sucks in yet another way.  When you do a head by Message-ID
> it returns the article from the spool instead of returning the article head
> from the front end server.  And when it does that, the copy of the article
> in the spool doesn't have a valid Xref: header in it - so you aren't going
> to be able to figure out the article number (unless the diablo system you
> are using is set up different from most Diablo systems).

In fact, it would not be that difficult to have a valid Xref in reply to
head request. You would need to set a header-only spooler and a patched
dreaderd that would allow to specify which spoolers have only headers.
But you would still miss Xref in article replies.

François
Re: XHDR with message-id
#74832
Author: Peter Robinson
Date: Mon, 05 Feb 2007 19:48
20 lines
1611 bytes
 Jeffrey M. Vinocur <jeff@litech.org> wrote:

> In article <1ht0w8x.5kywqb30hm7qN%pmrobinson@gmx.net>,
> Peter Robinson <pmrobinson@gmx.net> wrote:
>
> >Starts with an X!  Written up in RFC2980 and reasonably widely
> >implemented though.  Now standardised as HDR by RFC3977, but I imagine
> >XHDR is still much more common.
> 
> Err, yes, I know.

I did wonder!

> However, XHDR by Message-ID is no more non-standard than any
> other sort of XHDR, and that's the point under discussion.

Ahh.  Now I understand that strange whooshing sound up there somewhere.
As you were...

Peter
Re: XHDR with message-id
#75480
Author: Obese Terminator
Date: Sun, 11 Mar 2007 01:46
26 lines
2459 bytes
In article <87lkjd90pi.fsf@windlord.stanford.edu>, Russ Allbery
<rra@stanford.edu> wrote:
>Florian Zschocke <edv@zschocke-berlin.de> writes:
>> curt@kcwc.com (Curt Welch) schrieb:
>
>>> That's a diablo box.
>
>> Why can't we have a server-identification-string with server, version,
>> e.c.t., like every browser has. We could have that in the welcome
>> message.  I think that would be a no big risk, cause a spammer/hacker
>> would always try each exploit on every server.
>
>The new NNTP standard adds an optional capability for this, but not many
>people (myself included) have had a chance to implement it yet.

What have you done to big-8, you stupid nazi?




- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"My plan plays down an unprecedented amount of our national debt."

--- Adolph Bush,
    Budget address to Congress, Feb. 27, 2001
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