Article View: news.software.nntp
Article #57915Re: A better way to post binaries
From: Jeremy
Date: Thu, 04 Apr 2002 07:16
Date: Thu, 04 Apr 2002 07:16
119 lines
6110 bytes
6110 bytes
Klaas <spamhole@klaas.ca> wrote: > True. I can certainly see the potential uses for it, if nothing else > than to easily allow clients to display to users what the final > filesize is. Of course, this does not have to be in the Content-Type > header, and only in the first post. Where else to put it though? You can just invent a new header for it in that case. There's no need for it to be specially in the overview or anything. I can see the utility of being able to display the final size of the file to the client, so I may add this. > That is certainly one use. The mere fact that the article is marked > as binary would be extremely use for feeding text-only sites. That's not strictly necessary, as you can do that now, and you can do it better (ie, you can't rely on user-supplied tags if you want to make sure not to feed binaries to a site). > Also, I can see how it could be used to facilitate grouping articles as > files for combined expiration/transport/storage. The md5 parameter of > Content-Type accomplishes the same thing, No, the id parameter of application/file-fragment would be used for that, not the md5 parameter, because the md5 parameter will be the same in different posts of the same file. > but it seems to me that it would be easier on the server-side to use > Message-ID, since that is already the header used for transport and > storing the article. You're probably "tagging" the article at the time of storage anyway, so it wouldn't matter where exactly the information came from. >> Would non-modified clients take advantage of it in any way other than >> displaying the posts as followups? > > I couldn't fathom how. They could use it to find the first post, but > that implies some knowledge of the posting system. You can already find the first post using my spec for file-fragment. I was wondering if clients being used *now* would take advantage of this in some manner. I don't see any value in it otherwise. > On second thought, however, users of non-modified clients might want to > ignore "new" posts anyway, they being difficult to decode. Unless that's solved by using backward-compatible yEnc, in which case the "new" posts could be decoded using existing newsreaders, as long as the poster included the Subject information, which they should do at first. (They could actually be decoded without the Subject info, but the client would have no way of finding them.) >> If yEnc is used as the transfer-encoding, we can make it completely >> backwards compatible. Since yEnc currently doesn't do anything with >> MIME, the articles can be formatted with MIME but still be able to be >> decoded by existing (non-MIME) yEnc decoding implementations. > > Wouldn't the =ybegin and =yend lines be thrown out, and the yEnc > decoder thus at a loss for checksumming, filename, etc? No. What you do is, in the spec for the new transfer-encoding, you specify those as comment lines which must be ignored. So a posting client can generate them anyway, for the purpose of backward compatibility, and the information in them will simply be ignored by "new" clients. Eventually, the need to include them would go away. > Will Agent et al. be able to detect that the post is in fact yEncoded? I have no idea what they would do, but in any newsreader that doesn't do it, that would almost certainly be a 10-minute fix which could be released as an "interim" patch until real support for the new standard could be added. > The terminating =z would surely break existing decoders, as well. It would, yes, which is the reason not to use it, but rather to define the end-of-data marker as =yend instead. Not as pretty, but still works. > Yep, that's quite possible. I woudln't be surprised if someone wrote > an nntp proxy that converted MIMEPost to yEnc format on the fly, just > like the existing yEnc -> UU. There would be no need, given the above, because the existing clients would still be able to decode the posts. > I've seen a few reasons, but none of which outweigh the > existing-support factor. Arithmetic encoding was proposed as an > alternative, and there are some minor efficiency gains that could be > made to the yEnc process (longer lines, etc). There are tiny gains which could be made, but at the cost of much more complex encoding. One benefit of yEnc is that it's easy to write the code. Longer lines, certainly. In practice, you could use a max length of 998 characters. > The only other issues that come to mind are first, the subject line, > and if it is useful to keep all the data there as well for reverse > compatibility, It's necessary to keep it there at first. Obviously J.B. and I disagree on how long that should be the case. :) My feeling is that you keep on generating those silly Subject lines until most or all of the most-popular binary readers are using the New Way. > and second, whether it would be useful to have an > indicator that the post is made using the system MIME extentions you > propose. I suppose it fairly easy to grep for a required parameter in > a post's Content-Type, however. Yeah, that's what Content-Type is for. -- Jeremy | jeremy@exit109.com
Technical Details
Message-ID:
<1017904608.263036@ok-corral.gunslinger.net>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!sn-xit-02!supernews.com!saloon!newsbastardReferences:
<1017777829.201228@ok-corral.gunslinger.net> <a8g6ng$s8dfm$1@ID-26705.news.dfncis.de> <1017882364.413453@ok-corral.gunslinger.net> <a8grrp$s0025$1@ID-26705.news.dfncis.de>Show Full Headers
Complete Article Headers
Message-ID: <1017904608.263036@ok-corral.gunslinger.net> Subject: Re: A better way to post binaries Date: Thu, 04 Apr 2002 07:16:48 +0000 From: Jeremy <jeremy@exit109.com> References: <1017777829.201228@ok-corral.gunslinger.net> <a8g6ng$s8dfm$1@ID-26705.news.dfncis.de> <1017882364.413453@ok-corral.gunslinger.net> <a8grrp$s0025$1@ID-26705.news.dfncis.de> 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!sn-xit-02!supernews.com!saloon!newsbastard Newsgroups: news.software.nntp Organization: There Is No Organization Lines: 118 X-Newsreader: trn 4.0-test76 (Apr 2, 2001) X-Meow: Meow