Article View: news.software.readers
Article #52728Re: slrnpull corrupting binaries? - bug found!
From: Lloyd Zusman
Date: Wed, 06 Oct 1999 00:00
Date: Wed, 06 Oct 1999 00:00
69 lines
4198 bytes
4198 bytes
removethis@gmx.net (ras2) writes: > On 06 Oct 1999 10:30:59 -0400, Lloyd Zusman <ljz@asfast.com> > wrote in <ltd7us8st8.fsf@asfast.com>: > > > I can corroborate that slrnpull does not cause leading periods on > > lines it downloads to be doubled, since in more than a year of > > regularly using it to download articles, including binaries (1/1, > > multipart, whatever), I never saw it do that, and I never saw > > that corruption problem with any of the thousands of binaries > > that I processed in this manner. > > hm. I can't quite figure out what is going on, but if you > put a period at the start of a line and there's text on the > lines above, slrn will pad it with another period. It seems > to be removed again by either slrnpull or my server (Typhoon > 1.1.8), though, as it's not there after downloading the post. Because of the fact that the NNTP protocoal specifies that the "post" command uses a single period to signal the end of a posted article, any periods that stand alone on a line in an article need to be escaped in some way to prevent the newsserver from prematurely truncating the article. Therefore, it's necessary that all news clients that do posting escape lone periods within the bodies of news articles. Doubling this lone period is the accepted method for escaping it. Some newsservers un-double such periods when they store or deliver articles, which is why you sometimes don't see them once the posted article is read. To play it safe, most software doubles leading periods on all lines that get posted, not only lines which consist of lone periods. And from looking into the source code of slrn, it appears that it, too, is one of those pieces of software which doubles leading periods on all lines that it posts. Of course, as you mentioned, this posting behavior of slrn has nothing to do with the issue that was reported by the person who is using slrnpull to feed an INN spool, because in his case, slrnpull is *reading* articles, not posting them, and hence, no doubling or un-doubling is taking place within slrnpull used in this manner. > Nothing seems to happen if you put a period on the first line > of the post and (or?) the posts that slrn saves in the archive > dir aren't padded. I'm not sure why the first line of the post would be special, perhaps the NNTP "post" command is smart enough to ignore a lone period as the first line of an article, or perhaps something else is going on. As for why the articles in the spool directory aren't padded, it seems like the periods have been previously un-doubled by the newsserver. > This doesn't necessarily have anything to do with the problem, > I just noticed it after making a few tests. > > . ^ By the way, this came through as a single period to me. -- Lloyd Zusman ljz@asfast.com
Technical Details
Message-ID:
<lt1zb88jx8.fsf@asfast.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!not-for-mailReferences:
<37f94f42@newsserver1.picknowl.com.au> <slrn7vkgsn.h4d._hate_spam_thunder7@middle.of.nowhere> <37fae0d6@newsserver1.picknowl.com.au> <slrn7vm04q.i6j.scarblac-spamtrap@flits104-37.flits.rug.nl> <37fb166d@newsserver1.picknowl.com.au> <37fb3b50@newsserver1.picknowl.com.au> <ltd7us8st8.fsf@asfast.com> <slrn7vmto5.fj.removethis@gmx.net>Show Full Headers
Complete Article Headers
Message-ID: <lt1zb88jx8.fsf@asfast.com>
Subject: Re: slrnpull corrupting binaries? - bug found!
Date: Wed, 06 Oct 1999 00:00:00 +0000
From: Lloyd Zusman <ljz@asfast.com>
References: <37f94f42@newsserver1.picknowl.com.au> <slrn7vkgsn.h4d._hate_spam_thunder7@middle.of.nowhere> <37fae0d6@newsserver1.picknowl.com.au> <slrn7vm04q.i6j.scarblac-spamtrap@flits104-37.flits.rug.nl> <37fb166d@newsserver1.picknowl.com.au> <37fb3b50@newsserver1.picknowl.com.au> <ltd7us8st8.fsf@asfast.com> <slrn7vmto5.fj.removethis@gmx.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.mbox.zip!not-for-mail
X-Deja-AN: 533578841
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: newsabuse@supernews.com
X-Face: "!ga1s|?LNLE3MeeeEYs(%LIl9q[xV9!<nimJxd1qyQRquvu5XTnZ:_5VE-G&4* EAuW"7oJLIXj'DWrJ0z@,FlwvD2PA@qhQ2R#zgsc14Klk;OSE'*;+l8p?0^nK7* X#0zg5wd^!M^2pg,M4Qd^{1viG;fa{}b.s[?g(x$45c]]=@'ZQ&]sPXl!u:hxBA v>j4#xf4!**BFW_ihlOb;:Slb>)vy>CJM<qjGM,/6C6\|{))YWm6}Q#?3om%n8
Organization: Linux Hippopotamus Preserve
User-Agent: Gnus/5.070097 (Pterodactyl Gnus v0.97) XEmacs/21.1 (20 Minutes to Nikko)
MIME-Version: 1.0
Newsgroups: news.software.readers