Article View: news.software.nntp
Article #61148Re: [FNTP] 'in-completeness'
From: Russ Allbery
Date: Mon, 07 Oct 2002 22:13
Date: Mon, 07 Oct 2002 22:13
243 lines
13621 bytes
13621 bytes
Curt Welch <curt@kcwc.com> writes:
> I did miss your use of the words "locally posted articles". If they are
> reformatting local articles, and then sending out only that reformated
> version to the world, then this is a different issue that what I thought
> you were talking about.
Yeah, far fewer worries about decoding incorrectly or getting the wrong
version of the article, since that's the originating site.
> I thought you were talking about decoding multipart posts (all of them,
> not just local posts) and then allowoing people to sucks the binary file
> from the remote site.
Oh, no, that would be too much volume. I'd only expect each site to
handle its own articles plus then whatever peers it's agreeing to mirror
for other peers. (You want some sort of standardized naming scheme so
that you can pick up articles from multiple mirrors. Yeah, it really does
turn into a reinvention of some of the properties of NNTP, although one
can make some marked improvements in how one figures out where to get
messages from that would result in much less bandwidth used.)
> Yeah, I'm with you. But I'm not seeing any advatnage to "sucking" vs
> feeding the article. Well, the big advantage to sucking is that the
> side pulling down the articles knows when he can't keep up. With a
> normal usenet feed, it's real hard to get an accurate feel for that.
> But still I think push just works much better.
Hm.
You can do the same sort of thing with push rather than pull. The
direction of the feed isn't the important part of the concept. The
important parts are sending raw binary rather than any sort of encoding,
sending the entire message as a unit rather than doing multiparts, and
giving the accepting site an option to reject articles based on message
size (which is much easier to do once you've eliminated multiparts).
I like the trivial backfill properties of suck, which seems more important
for binaries since it's more likely for binaries to get dropped, but the
other problems may not make it worth it.
Ideally, you take the binary direct from user upload rather than ever
going through an encode and decode cycle, and encode (and possibly split)
the binary yourself for propagation to Usenet for the user rather than
having the user do it. That eliminates a bunch of problems with broken
encoders as well as making it easier to get the pure version of the
binary.
> What if they are down for 12 hours and and then try to catch up by doing
> 100 parallel transfers. Ok, there are solutions just like there are
> solutions for Usenet. But it just sounds like you are reinventing the
> wheel for little gain. I'm not seeing it yet.
I think I'm approaching the same problem that you're approaching from a
different angle, namely for high-volume binary posts to pull away from the
concept of treating the messages just like we'd treat any other message.
The current mechanism for uploading such messages is designed well for
primarily text-based discussion with occasional attachments, but is badly
broken for pure binary high-volume groups or posters.
As mentioned in another post, it's more complicated by far than just
binary or not binary. It's really more of a distinction between
high-volume pure binary, pure text, and a variety of interesting cases in
the middle (where you really want to do some filtering based on things
like Content-Type so that you can reject movies and accept line drawings).
> If someone had a better way to move articles from their server to mine,
> I'd be happy to look at that. But, the trick is that the articles must
> be in a form where I can then move them to my peers who have not yet
> converted to a "new system". If we were to define a new way to move
> files that required a new protocol to work -- such that any file posted
> to these servers would only be available on a small set of servers that
> supported it, then no one would use it.
And at the same time, I think most everyone agrees that encodings, any
encodings, inherently lose, and that the world we'd all like to move
towards is one where binary posts have a CTE of "binary" and no encoding
at all.
So that's really arguing for allowing news servers to re-encode to
propagate messages to older peers. But that's kind of frightening.
> If you have 5 part post which, when the bodies are combined together,
> includes 12 uuencoded pictures and text scattered between each of the
> pictures, how do you convert that into "a binary", and then convert it
> back to articles later, and end up with all the same text in all the
> right places?
There's no such thing as a 5 part post that contains 12 uuencoded
pictures. :)
Seriously. There's only one way to split uuencoded binary content across
messages, and that method doesn't let you do it sanely with multiple
binaries in the same multipart post. So don't even bother trying. State
that by definition of a multipart post no such thing exists or will be
recognized. The number of people doing stuff like this surely can't be
large (and isn't based on the binaries I've seen).
If someone really wants to take a complex post like that and split it
across multiple separate posts, they need to use a protocol that can
actually correctly represent that (namely message/partial or some
variation thereof).
> How do you deal with mime multipart files which contain multiple files
> in the same post combined with multiple text and/or html sections?
> What happens to an apple double mime post?
> For a traditional simple multipart, what happens to the text that shows
> up in front of the binary? What happens to the "Posted at Newsfeets"
> message at the bottom of every article?
I don't see why any of these are hard.
You take the attachment and convert it to CTE binary and leave the rest of
the post alone. If the user is posting and uploading separately, you
stick the attachment in at the point where they indicated, splitting the
message into multipart/mixed if necessary to do so. If the user used yEnc
or uuencode, transform it into a real MIME part, changing the message to
multipart/mixed as needed.
It's not particularly hard to do this sort of thing; one just reads the
MIME standards and implements them. All the logic is already there for
doing this sort of thing and doing it pretty well. The mail clients
already know how to deal with all of these sorts of posts, to a greater or
lesser degree.
> What happens when decoding errors happen? Like the "end" line is left
> off a uuencoded message? What happens when a uuencode dmessage is
> posted with lines lenghts other then "M"? Does it abort or does it
> decode? What happens in a uuencoded file when the posting tool forgets
> to dot escape the lines as it's sent to the NNTP server so the dot that
> happened to be there is stripped off? There are usenet uudecoding tools
> that look for that and figure out what the file "should have been" had
> it been posted correctly. Is that right or wrong?
Corrupt binaries are corrupt binaries. What do you do now when decoding
such messages for your users?
You can either filter such things out as broken, or you can attempt to
repair them; if you do repair them, you can probably only do so locally
and will have to propagate the original post via normal mechanisms. But
such posts can also only originate with traditional sites, and in time
maybe you decide to just filter them out.
> What happens to a repost which is only 3 of 10 parts? How is that set
> of 3 articles converted to binary and then converted back again?
I'd treat any incomplete post the same as I'd treat a corrupt post.
> However, this idea of moving binaries I think has some merit simply
> because we are talking about trying to transform the concept into a
> completely different type of article for usenet. I dont' see it
> applying to text articles at all. Text articles (and their message-ids)
> will stay like they are today.
The line is a bit hard to draw, though. :)
> And, you would still be able to "hide" binaries in text articles using
> uuencode, or MIME, or yEnc, after this system takes over. But I think
> that would be done for backward compatibility reasons, and for use with
> small single-part files where it's nice to put a few small uuencoded
> pictures in-line with some plain text.
Right. And this same thing applies to corrupted binaries as you describe
above, too, I think.
> I would see this new system taking over the transport of the big things
> that normally move as multipart posts today.
Precisely. And possibly the pure picture groups as well, although really
they're less pressing as a problem.
> That's one of them. Some options would be to simply not allow it. You
> have to put whatever you want in the header somewhere. Summary: could
> come back into use.
> Or we could force the use of part 0 articles if any additional text was
> to be included with the post.
I'd really rather see something like a special marker that you insert into
the body indicating where to put the binary. Or, as another approach,
since a lot of people already have news readers that can do MIME
attachments, have them post the message they want with a MIME attachment
of some small file with a filename matching the file they really wanted to
attach and just replace the attached file with the real one on posting.
The special marker is probably the easiest to explain.
>> What about multipart (not in the sense of multiple posts for the same
>> file, but in the MIME sense of multiple different types of data
>> collected into the same post)?
> I think it would be a mistake to support it.
Usenet absolutely has to support it to remain compatible with mail; people
use it extensively.
> Unix doesn't have a concept of multipart files like CDC did.
Yes, but that's not what this is. What this is is something like
including an inline line drawing in a discussion of fonts. That post
would become multipart/mixed or multipart/related if posted with proper
MIME structure.
> The only issue I see there is the ability to ship the segments though
> e-mail. Mail programs can't deal with usenet multipart articles as it
> is and I wouldn't expect them to deal with these.
Mail programs often can deal with message/partial, actually. IE can
certainly send it and I believe can receive it as well. And of course
Gnus can deal with anything in e-mail that it can in news.
If you use message/partial to handle any necessary splitting of the
message (although usually you want to just avoid any splitting whenever
possible) and use a proper MIME structure for the message, mail readers
will generally deal with it just fine.
> If you talk about formalizing what a usenet-file-segment is, then maybe
> there would be a standard way (using MIME) to encode it for trasport
> over e-mail.
I think you'll find that message/partial is almost already there.
> And maybe the normal way for it to "live" on usenet and be passed from
> server to server is the same format. But the servers might have the
> ablity to store them as pure binary segments in the news spools and
> translate to some MIME encoding (or yEnc or uuencode) or something when
> it's transmitted.
The only problem with message/partial is that it's in the message/* space,
which disallows CTE binary. But if you use something very similar on
Usenet that allows CTE binary and then re-encode to base64 CTE for mail
with the same structure and change the top-level MIME types to
message/partial, I think you'll get something that a surprising number of
mail clients would be fine with.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<ylu1jxaoda.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mailReferences:
<58068.n92202@archiver.winews.net> <20020924011222.716$tx@newsreader.com> <ylofabv431.fsf@windlord.stanford.edu> <4319b.4a2200@archiver.winews.net> <ylzntuxir5.fsf@windlord.stanford.edu> <041020021438385411%planb@newsreaders.com> <yl7kgyrpwd.fsf@windlord.stanford.edu> <041020021954536744%planb@newsreaders.com> <ylwuoxhhhx.fsf@windlord.stanford.edu> <20021005022430.397$TR@newsreader.com> <yld6qpv0rd.fsf@windlord.stanford.edu> <20021005043816.517$kr@newsreader.com> <yld6qosu9b.fsf@windlord.stanford.edu> <20021005183917.837$Qo@newsreader.com> <ylfzvkcwue.fsf@windlord.stanford.edu> <20021005233454.131$iS@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <ylu1jxaoda.fsf@windlord.stanford.edu> Subject: Re: [FNTP] 'in-completeness' Date: Mon, 07 Oct 2002 15:13:53 -0700 From: Russ Allbery <rra@stanford.edu> References: <58068.n92202@archiver.winews.net> <20020924011222.716$tx@newsreader.com> <ylofabv431.fsf@windlord.stanford.edu> <4319b.4a2200@archiver.winews.net> <ylzntuxir5.fsf@windlord.stanford.edu> <041020021438385411%planb@newsreaders.com> <yl7kgyrpwd.fsf@windlord.stanford.edu> <041020021954536744%planb@newsreaders.com> <ylwuoxhhhx.fsf@windlord.stanford.edu> <20021005022430.397$TR@newsreader.com> <yld6qpv0rd.fsf@windlord.stanford.edu> <20021005043816.517$kr@newsreader.com> <yld6qosu9b.fsf@windlord.stanford.edu> <20021005183917.837$Qo@newsreader.com> <ylfzvkcwue.fsf@windlord.stanford.edu> <20021005233454.131$iS@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.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 242 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1034028834 5080 171.64.13.23 (7 Oct 2002 22:13:54 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Honest Recruiter, sparc-sun-solaris2.6) Cancel-Lock: sha1:D/cjLeAXKm06/UrX8Lkjlm+21qQ=