Article View: news.software.readers
Article #86571Re: Q on unfolding headers
From: fD
Date: Fri, 02 Nov 2001 04:03
Date: Fri, 02 Nov 2001 04:03
67 lines
3744 bytes
3744 bytes
Curt Welch dumped some text in news.software.readers with news:20011101223014.929$EI@newsreader.com: > Luu Tran <luutran@geocities_.com.invalid> wrote: >> From rfc822 >> >> << >> The process of moving from this folded multiple-line >> representation of a header field to its single line >> represen- tation is called "unfolding". Unfolding is >> accomplished by regarding CRLF immediately followed >> by a LWSP-char as equivalent to the LWSP-char. >> >> >> >> So only the CRLF should be removed, correct? I.e., >> >> X-1: foo<CRLF> >> <WS>bar. >> >> should become >> >> X-1: foo bar. > > That's the way the spec is written. > >> The leading whitespace(s) should be kept intact, right? > > Right. In theory. > >> The reason I ask is that I've come across instances where keeping >> the lwsp looks wrong. Either I'm misreading the RFC or the >> user-agent folded the header incorrectly. > > In practice, I think you may find that you need to transform all > whitespace before the CR LF, and after the CR LF into a single > space. It's a problem because if everyone followed the spec, then > you could be sure to get the correct single-line version of the > header back, but since some don't, you don't know what to do. > > And when dealing with follow-ups of an article where some agents > decided to fold the Subject, and add extra spaces, and others > decided to un-fold using different algorithms, you end up with > multiple version of the header which if you are sorting by the > subject can cause problems. > > It's a tough call trying to figure out if you should follow the > spec and have things not work (but hope that one day the broken > clients will get fixed), or not follow the spec and have things > generally work better - but then cause potential problems for > clients trying to do the "right thing". Would it be feasible to check the posting agent, and apply a different algorithm based upon whether it is a type of reader that is "known" to do the right thing, or an offender? Then if problem readers get corrected, they could just be shifted to the "compliant list". My other question is, if one could find certain definite patterns in the way in which readers break this (maybe there's only one or two definite problems), perhaps one could just check for the known patterns and act accordingly. Please don't laugh too much, I know it's obvious I don't know what I'm talking about. <g> -- fLameDogg
Technical Details
Message-ID:
<Xns914CE056AE024imamidnighttoken@The.Hot.Dogg.House>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!fu-berlin.de!uni-berlin.de!host-216-76-253-163.pns.bellsouth.NET!not-for-mailReferences:
<Xns914CB9717AB37luutrangeocities@207.126.101.97> <20011101223014.929$EI@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <Xns914CE056AE024imamidnighttoken@The.Hot.Dogg.House>
Subject: Re: Q on unfolding headers
Date: Fri, 02 Nov 2001 04:03:29 +0000
From: fD <flamedogg@hotmail.com>
References: <Xns914CB9717AB37luutrangeocities@207.126.101.97> <20011101223014.929$EI@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.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!fu-berlin.de!uni-berlin.de!host-216-76-253-163.pns.bellsouth.NET!not-for-mail
Newsgroups: news.software.readers
Lines: 66
NNTP-Posting-Host: host-216-76-253-163.pns.bellsouth.net (216.76.253.163)
X-Trace: fu-berlin.de 1004673809 33408123 216.76.253.163 (16 [51796])
User-Agent: Xnews/4.11.01
X-Face: )HOrj~J@.=pgC2;~k+u#SJ_\jI{*uxHmj\~Jo]n{S[(O2y[r)b~[Wvd!77l)P:^@#?M=@1t:Uli>(;QUnxZ?75Y"ZZYh>`S($2c|jbosTLoV@OK|YS~d_"h5M$Q9e{W07<KD|{[7(r]LZ6/Wk6LPH@ae8x>9N@In^@j<.0p3x:TY(.X%Lxe/R=.~{UT+@JqigN/aE;7iHaFpJL*iH7@TRW>A_P^H)4BZNkg73H2b(=-pU>>47@f