Article View: news.software.readers
Article #256814Re: Detecting threads
From: Sandman
Date: Fri, 24 Jan 2014 15:00
Date: Fri, 24 Jan 2014 15:00
51 lines
3179 bytes
3179 bytes
In article <lbttcs$dt9$2@news.albasani.net>, Adam H. Kerman wrote: > > Sandman: > > So, if you have a database full of usenet posts, and access to all > > headers - what is the best way to determine thread relationships? > > The References header is the obvious first suggestion here, but > > there is no guarantee that it will contain the Message-ID of the > > original post. > > You're a few RFCs behind. In sloppily-written 1036, it was a SHOULD, > and "original message" refers to what we've later called "immediate > precursor article" in subsequent documents. Truncation of References > was permissable, with no requirement to retain the Message-ID of the > thread's root article, rather thoughtless. > Starting with Son-of-1036, > Followup agents SHOULD not shorten References headers. If it is > absolutely necessary to shorten the header, as a desperate last > resort, a followup agent MAY do this by deleting some of the message > IDs. However, it MUST not delete the first message ID, the last > three message IDs (including that of the immediate precursor), or > any message ID mentioned in the body of the followup. > it became a requirement that if References is truncated, it must > still contain the Message-ID of the root article. This is retained > in Grandson-of. > trn, for instance, shortens References as allowed in Son-of. > If a newsreader shortens References in some other way, or deletes > the Message-ID of the root article, it is non-standard and the user > should find another newsreader to use. Where have you run into this > problem? I couldn't say, since I can't really make any examples, and I am not 100% sure of some client doing it. As far as can be determined - the References heade rshould always contain the Message-ID of the OP, so that should be enough to fetch all thread articles. Of course, since the header can be truncated - as you say - I may still have to process the fecthed articles and see if they also contain References that have not yet been fetched, but logically, I should be able to parse the References header, find the OP, and then just fetch all articles that have the same OP in the header. -- Sandman[.net]
Technical Details
Message-ID:
<slrnle506f.190.mr@irc.sandman.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!f11no2559803qae.1!news-out.google.com!k5ni390lbs.1!nntp.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<slrnle4klj.hp.mr@irc.sandman.net> <lbttcs$dt9$2@news.albasani.net>Show Full Headers
Complete Article Headers
Message-ID: <slrnle506f.190.mr@irc.sandman.net> Subject: Re: Detecting threads Date: Fri, 24 Jan 2014 15:00:12 +0000 From: Sandman <mr@sandman.net> References: <slrnle4klj.hp.mr@irc.sandman.net> <lbttcs$dt9$2@news.albasani.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!f11no2559803qae.1!news-out.google.com!k5ni390lbs.1!nntp.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail X-Received: by 10.152.5.99 with SMTP id r3mr6717252lar.1.1390575612997; MIME-Version: 1.0 Newsgroups: news.software.readers Lines: 51 X-Trace: individual.net kmvm0lR8gTRo2oryAu11Vgsovfjigi52koYgOr243EKu1WQ4Y= Cancel-Lock: sha1:SgW5yHth++Sss7dxrqFD8UyWm+Y= User-Agent: slrn/pre1.0.0-18 (Linux)