Article View: news.software.readers
Article #256878Re: Detecting threads
From: VanguardLH
Date: Fri, 31 Jan 2014 05:08
Date: Fri, 31 Jan 2014 05:08
73 lines
5981 bytes
5981 bytes
Okay, decided to test what happens in my client and at the NNTP server when I keep making the References header longer and longer. I'm using 40tude Dialog (abandoned back in 2005). In a *.test newsgroup, I kept replying to myself to create an ever increasing depth to the subthread and lengthen the References header. Based on the length of the Message-ID header created by my Usenet provider (Eternal-September) of 32 characters, including the left and right angle brackets to enclose the MID value, I got up to 23 replies at which point the 2nd post (1st reply) got removed (trimmed) from the References header while the MID from parent post (22nd) got appended. The 1st MID and the rest got kept in the References header. In the 24th reply, the 2nd and 3rd MIDs got removed while the parent's (23rd) MID got appended. So Dialog was performing what RFC 5537 recommends regarding trimming of MIDs from the References header. However, Dialog started trimming out MIDs from the front end of the References header (except the 1st one) when the References header only got to 740 characters long. So it wasn't even going up to the 998-character recommended limit specified by this RFC. So apparently Dialog won't let the References header fold into continuation lines. It keeps the References header limited to one physical line and under 740 characters in length. With 12 characters for "References: ", and with 32 characters per MID value added by my Usenet provider for each of my posts through them, I got 21 MIDs specified in the References header before it started to perform the front-end trimming. With some users that have their client's specify the MID value and also use some ridiculously long and cutsy MID values, the number of MIDs that Dialog will retain in the References header would be even less. In fact, and with extremely long MID values, the References header may not be able to contain more than the 1st MID and wouldn't even have room for another MID value which means the parent is lost so a post only has the originating post to point at. With MID values shorter than mine, more MIDs could be tracked in the References header. Other NNTP clients would probably have a different max buffer length before they began front-end trimming. With the limit in length for the References header (at whatever length), it seems malicious posters could make it impossible for the References header to track anything other than the originating (root) post. In fact, if MID header lines are allowed to be up to 998 characters then the MID value could be up to 986 characters long which means only the root post could not be added to a References header with my client's limit of 740 characters or with the RFC's limit of 998 characters. "Message-ID: " and "References: " are both 12 characters long. A 986 character long MID value would just fit into a References header: "References: " (12 characters) plus a 986 character long MID value. So what is the maximum length for the value of the MID header? RFC 4130 says: " Message-Id length is a maximum of 998 characters. For maximum backward compatibility, Message-Id length SHOULD be 255 characters or less." Since the max physical line length is 998 characters and "Message-ID: " eats up 12 characters, it seems the maximum length for the MID value is 986 characters. That means only 1 MID value could be specified in the References header also limited to 998 characters even with folding into continuation lines. At the recommended maximum of 255 characters for the MID value, 986 mod 255 = 3. So at their recommended max for MID value, you would have only space for 3 MID values in the References header. Wow, without allowing folding into continuation lines, threads could get untracked after just 2 replies (1 for root post's MID + 2 MIDs for last replies in the same subthread). This sucks. Damn, I was hoping the [my] client would fold the References header into continuation lines so all MIDs in the complete subthread could be tracked. Not happening that way in Dialog. It's already doing the trimming mentioned in RFC 5537 but at an even shorter effective string length (740 characters instead of 998). RFC 5537 mentions folding of the References header but Dialog doesn't have to do any folding since it never approaches the recommended limit of 998 characters per physical line. Again, this sucks.
Technical Details
Message-ID:
<lcfb4t$3jl$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.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mailReferences:
<slrnle4klj.hp.mr@irc.sandman.net> <52e829c8$8$fuzhry+tra$mr2ice@news.patriot.net> <lcbveo$m7a$1@dont-email.me> <52e9d8c8$24$fuzhry+tra$mr2ice@news.patriot.net> <lcemar$26c$2@news.albasani.net> <lcf67c$g3q$1@dont-email.me>Show Full Headers
Complete Article Headers
Message-ID: <lcfb4t$3jl$1@dont-email.me> Subject: Re: Detecting threads Date: Thu, 30 Jan 2014 23:08:43 -0600 From: VanguardLH <V@nguard.LH> References: <slrnle4klj.hp.mr@irc.sandman.net> <52e829c8$8$fuzhry+tra$mr2ice@news.patriot.net> <lcbveo$m7a$1@dont-email.me> <52e9d8c8$24$fuzhry+tra$mr2ice@news.patriot.net> <lcemar$26c$2@news.albasani.net> <lcf67c$g3q$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.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!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: 73 Sender: VanguardLH <> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Injection-Date: Fri, 31 Jan 2014 05:08:46 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="f65692f1328d27b9dd53e0170aa8b6f1"; logging-data="3701"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX197N+EOfwU3Y2Pzv9X+G4FeIEEVpWUd2Xw=" Keywords: VanguardLH VLH811 User-Agent: 40tude_Dialog/2.0.15.41 Cancel-Lock: sha1:7pAtWZQ7s3ZIjko1B6oKIHwxZRc= X-Original-Bytes: 5675