Article View: news.software.nntp
Article #74817Re: XHDR with message-id
From: Curt Welch
Date: Sun, 04 Feb 2007 16:15
Date: Sun, 04 Feb 2007 16:15
87 lines
5377 bytes
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/
Technical Details
Message-ID:
<20070204111543.831$CP@newsreader.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!newshub.sdsu.edu!news-xxxfer.readnews.com!textspool2.readnews.com!textspool1.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr3.newsreader.com.POSTED!not-for-mailReferences:
<F98FA266-420E-460C-8F2D-18899C4AC8D8%edv@zschocke-berlin.de>Show Full Headers
Complete Article Headers
Message-ID: <20070204111543.831$CP@newsreader.com>
Subject: Re: XHDR with message-id
Date: Sun, 04 Feb 2007 16:15:15 +0000
From: curt@kcwc.com (Curt Welch)
References: <F98FA266-420E-460C-8F2D-18899C4AC8D8%edv@zschocke-berlin.de>
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!newshub.sdsu.edu!news-xxxfer.readnews.com!textspool2.readnews.com!textspool1.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr3.newsreader.com.POSTED!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-NRC-Trace: NewsReader.Com u.jwj8kttqr31-,Kl625wb6etmX3=B21rzrmDrzSaWFWF-p,p
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,
?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 87
NNTP-Posting-Host: 289b884e.nr3.newsreader.com
X-Trace: DXC=@UoK=cjdQ0lCB2jWAdU3GnOA8_@f\K_ibNeemI`PFoEloelI]UBDDnnNd7biGRhQTg<SVPgDF]ACd98WHN;
@Y[I`
X-Complaints-To: abuse@newsreader.com