Thread View: news.software.nntp
5 messages
5 total messages
Started by Mortimer
Mon, 18 Feb 2002 21:59
Binary posting (MIME, yEnc, & co)
Author: Mortimer
Date: Mon, 18 Feb 2002 21:59
Date: Mon, 18 Feb 2002 21:59
24 lines
1607 bytes
1607 bytes
Hi, Still trying to code my own news reader (don't ask me why I got so dumb to get such an idea), I'm looking on how to post and read binary article. Looking around and looking at all the output and input of a normal news reader, I find that even a text file was not directly posted but encoded first. So I came with few questions: - how do I know that a binary is included in a post? (is the "begin 644 file-name ... end" the standart key? where is this defined?) - what encoding is the standart? UU, MIME, yEnc? which one should I use to post? (I should be able to read all of them...) - how to know which encoding is used? - where to find definitions (algorithm) for all those encoding? does somebody know java api that already suport them? TIA -- Mortimer Porte do not open hidden doors!!
Re: Binary posting (MIME, yEnc, & co)
Author: Jeffrey M. Vinocur
Date: Mon, 18 Feb 2002 22:13
Date: Mon, 18 Feb 2002 22:13
54 lines
2309 bytes
2309 bytes
In article <Xns91B9E9CB1E501M8@62.2.16.82>, Mortimer <mortimer.porte@usa.net> wrote: > >Still trying to code my own news reader (don't ask me why I got so >dumb to get such an idea) Yes, did you read http://www.newsreaders.com/misc/twpierce/news/newsreader-manifesto.html first? >Looking around and looking at all the output and input of a normal >news reader, I find that even a text file was not directly posted but >encoded first. Well, it depends on the encoding scheme -- MIME can include text files plain, for example. >- how do I know that a binary is included in a post? (is the "begin >644 file-name ... end" the standart key? where is this defined?) It depends on the encoding used. MIME is easy, it has a standard. uuencode you just guess, really. >- what encoding is the standart? UU, MIME, yEnc? which one should I >use to post? (I should be able to read all of them...) It should be up to the user -- look at an existing newsreader for ideas. >- how to know which encoding is used? Try them all. >- where to find definitions (algorithm) for all those encoding? MIME has an RFC. The others...try google. >does somebody know java api that already suport them? I don't...there might be one for MIME, though. -- Jeffrey M. Vinocur jeff@litech.org
Re: Binary posting (MIME, yEnc, & co)
Author: Karl Kleinpaste
Date: Mon, 18 Feb 2002 23:51
Date: Mon, 18 Feb 2002 23:51
51 lines
4126 bytes
4126 bytes
lordsnow@home.nl (=-lordsnow-=) writes: > Binhex is standard for Apples. UUencode for IBM-PC's. uuencoding came out of the UNIX environment. It began as sort of an adjunct of the greater UUCP (Unix-to-Unix CoPy) system by which most of Usenet used to be shoveled from place to place. > UUencode is the most common (de fact standard on Usenet?), tho > there are several slightly different implementations of it. Base64 > is always recommended to be the "best" technically speaking - it's > just rarely used. It's utterly commonplace in MIME contexts. Almost all MIMEd image articles, for example, are base64-encoded. > Yes, you can see what encoding schemes are used by looking for > lines like "begin 644" (which is used by... Base64?). "begin <octal digits> SomeFileName" is the header produced by uuencoding, and again, it is a UNIX-centric perspective. The octal digits are an indication of the intended file protection bits, where "644" is the usual "anybody can read it, only the owner can write it" setting. > I would select to be able to post in UUe and yEnc. It's unclear to me that "yenc" is a good idea, but my opinion is not terribly firm. I will be content to let Usenet market forces shake it out. MIME handling, as a much more general issue, is of far more importance. MIME-encoded messages can contain any other encoding type, because MIME is a scheme for introducing message segments based on a description of content type and encoding, as well as describing some relationships between various message segments, such as multipart/alternative, to select between e.g. text/plain and text/html, and multipart/related, by which an image file segment can be made part of e.g. a text/html href using the Content-ID header. Of greatest concern to me is the creation of Yet Another Newsreader by someone who is not in a position already to understand most of these issues. The author of a new newsreader, today, has a really quite heavy burden to bear in terms of compliance with the greater Usenet environment and a large number of incredibly-important-but-niggling details that are liable to escape notice of someone who is still at the point of wondering, "What are all these encodings?" I think the person pursuing these questions has a huge amount of homework ahead of himself, in order to achieve sufficient awareness of and coherence with all the requirements which he is about to face.
Re: Binary posting (MIME, yEnc, & co)
Author: J.B. Moreno
Date: Tue, 19 Feb 2002 03:36
Date: Tue, 19 Feb 2002 03:36
19 lines
1889 bytes
1889 bytes
In article <3c77ba35.38016728@news>, =-lordsnow-= <lordsnow@home.nl> wrote: > Karl Kleinpaste wrote: -snip- > > The author of a new newsreader, today, has a really quite > > heavy burden to bear in terms of compliance with the greater Usenet > > environment and a large number of incredibly-important-but-niggling > > details that are liable to escape notice of someone who is still at > > the point of wondering, "What are all these encodings?" > > Step 1 - read all the RFC's. Then read them again. (actually, what I did > some two years or so ago was rewrite 977 so its in plain english). > Step 2 - Choose what parts you want to implement, and do -that- well. Unfortunately, not all of the necessary information is contained in RFC's (ROT13, spoiler spaces, attributions, sigdash, etc).
Re: Binary posting (MIME, yEnc, & co)
Author: Mortimer
Date: Tue, 19 Feb 2002 09:58
Date: Tue, 19 Feb 2002 09:58
41 lines
2506 bytes
2506 bytes
Karl Kleinpaste <karl@charcoal.com> wrote in
news:vxkheoe73hh.fsf@cinnamon.vanillaknot.com:
>
> Of greatest concern to me is the creation of Yet Another
> Newsreader by someone who is not in a position already to
> understand most of these issues. The author of a new newsreader,
> today, has a really quite heavy burden to bear in terms of
> compliance with the greater Usenet environment and a large number
> of incredibly-important-but-niggling details that are liable to
> escape notice of someone who is still at the point of wondering,
> "What are all these encodings?"
>
the fact is that i'm have not started anything yet, I'm just
documenting about all the nuts and bolts I would need to code a news
reader.
but be sure that encoding is not my last concern and It might confort
you that all this "Yet Another Newsreader" is neither a commercial
thing or a new Agent or Xnews but just an lesson to me.
And it might also be some sort of info centralization and decoding for
whome would be the next Agent programmer :)
> I think the person pursuing these questions has a huge amount of
> homework ahead of himself, in order to achieve sufficient
> awareness of and coherence with all the requirements which he is
> about to face.
I'm today starting my homework, this is why I posted all these
question on the ng to first:
- know what I should know
- know where to find all the information to learn
then I could really start to design my news reader :)
but thank you for the aware, be sure I'll remember it.
--
Mortimer Porte
do not open hidden doors!!
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads