🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #256815

Re: Detecting threads

#256815
From: VanguardLH
Date: Fri, 24 Jan 2014 21:15
68 lines
4691 bytes
Sandman wrote:

> In article <lbtrr9$tgl$1@dont-email.me>, VanguardLH wrote:
> 
> Very good informative reply!

Except I think I was wrong on who constructs the References header.  See
Kerman's reply to me (and mine to him).

> The reason I said that the References header not always containing the OP 
> is because I can swear that I've seen it happen. 

Since the client (as Kerman stated) constructs the References header, it
would be someone using an NNTP client (or some webnew-for-boobs
web-based client) that fails to add that header that would disrupt
everyone else participating further in that subthread.

> What I am 100% sure has 
> happened, however, is that the References header being truncated - i.e. it 
> does contain the OP and perhaps the 10-15 latest post in succession, but 
> lacks older posts up until the OP. 

Sounds like a limited size buffer problem.  Not a big enough buffer to
hold the overly long string.  If Kerman is correct, the truncating is on
the front end of the References header taken from the parent article.
The program probably adds the parent's MID value into the buffer,
prepends the parent's References header into the buffer (but overall
length is too long and gets truncated on the front or left end), and
then writes the truncated value into its References header.  

Some programming languages require you to preallocate the memory for a
buffer so it could end up being too small.  There are probably
techniques for segmenting the string operation across multiple uses of
the buffer or adding more buffers but the programmer didn't think about
it.  In some programming languages, strings don't have a predefined size
so you can keep prepending, appending, or mid-pending to them.  A lot of
folks use free libraries that are black boxes with limits they don't
know about.

> basically, the header would contain:
> 
> References: 1, 15, 16, 17 , 18, 19, 20, 21

I'm not sure what algorithm for string manipulation would keep the very
first MID (for the root article) but omit a whole bunch in between.  If
it were a truncation problem then the first MID (root article's MID)
would get truncated, too.  It's possible by weird.  The programmer would
have to keep the first MID in the parent's References header in one
buffer, append the parent's MID to the parent's References string (which
gets truncated), and then concatenate those two buffers to get a gap
like that.

> But if what you say is true - then I should just pick the first Message-ID 
> in the References header, and then select all other posts that begin with 
> the same Message-ID in that header, and that SHOULD get all posts for a 
> thread, right?

Kerman says the parent's MID gets appended to the parent's References
value.  The References header tracks all the prior posts in a subthread
from the parent to the root article but obviously doesn't contain its
own MID value.  The tracking is from the bottom up and is pretty quick
is all you have to do is use the parent's References header to build
your own References header (and then append the parent's MID to it).
That's just concatenating 2 strings: str(<parentRef>)+str(<parentMID>).

I would say that I see truncation errors in such string operations occur
at the end (right end) than at the front (right end).  Evaluation is
usually left to right regarding the operands.
Technical Details
Message-ID: <lbul6b$3rj$1@dont-email.me>
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!goblin3!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
References: <slrnle4klj.hp.mr@irc.sandman.net> <lbtrr9$tgl$1@dont-email.me> <slrnle4vrf.190.mr@irc.sandman.net>

Show Full Headers
Complete Article Headers
Message-ID: <lbul6b$3rj$1@dont-email.me>
Subject: Re: Detecting threads
Date: Fri, 24 Jan 2014 15:15:54 -0600
From: VanguardLH <V@nguard.LH>
References: <slrnle4klj.hp.mr@irc.sandman.net> <lbtrr9$tgl$1@dont-email.me> <slrnle4vrf.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!goblin3!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: Usenet denizen
Lines: 68
Sender: VanguardLH <>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 24 Jan 2014 21:15:55 +0000 (UTC)
Injection-Info: mx05.eternal-september.org;
 posting-host="f65692f1328d27b9dd53e0170aa8b6f1";
 logging-data="3955"; mail-complaints-to="abuse@eternal-september.org";
 posting-account="U2FsdGVkX1+Bi3AyMxniJyo1lDyr1TQE8MkXseXB3YY="
Keywords: VanguardLH VLH811
User-Agent: 40tude_Dialog/2.0.15.41
Cancel-Lock: sha1:J4h9rI1LPDS1dlE99A/9afJA3RQ=