🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #46460

Re: Encoding binary data

#46460
From: Anne Wilson
Date: Wed, 17 May 2000 00:00
67 lines
3550 bytes
Hi Brad!  I really appreciate your response.  And, thank you for defending my
honor!

Most likely we will actually distribute the software that will make up our
network, so we will not be relying on an arbitrary news servers at remote
sites.   (We don't expect our sites to have to the background or support to
set up and configure a news server from scratch.)

If I need to make 'small' changes to INN, I can do that (although that may
lead to a maintenence morass that could be bad enough to make it
prohibitive...)  In looking at the innxmit code, it looks like the only
encoding it explicitly handles is quoted printable:

            if (ContentEncoding
                && (caseEQ(ContentEncoding, "binary")
                 || caseEQ(ContentEncoding, "8bit"))) {
                if (ContentType == NULL || caseEQ(ContentType, "text"))
                    MimeArticle = MTquotedprintable;
                } else {
                    /* Shouldbe MTbase64, but not implemented yet. */
                    MimeArticle = MTnotmime;
                }

Does this mean that anything else will bomb?

On the other hand, the latest IETF draft of "News Article Format" (Feb.
2000)  says explicitly,

    "Transmission paths for news articles MUST treat news articles as
   uninterpreted sequences of octets, excluding the values 0 (ASCII NUL)
   and 13 and 10 (ASCII CR and LF, which MUST ONLY appear in the
   combination CRLF which denotes a line separator).

        NOTE: this correspponds to the range of octets permitted for
        Mime "8bit data" [RFC 2045].  Thus raw binary data cannot be
        transmitted in an article body except by the use of a Content-
        Transfer-Encoding such as base64.

   An octet, or a sequence of octets, may represent a character in some
   Coded Character Set (CCS) as determined by some Character Encoding
   Scheme (CES) [RFC 2130]."

I need to look at these RFCs to see what a news server SHOULD do, but that
still doesn't tell me if INN will handle some other encoding.  I'm tempted to
research some 8-bit encoders and try it on my test network.    Other
statements in that draft imply that UTF-8 encoding might work.  I don't yet
know enough about 8-bit encoders or INN to know how speculative this is.  If
you think this is a complete waste of time please let me know.    Or, if
there's some other encoding that you might recommed I'd like to know that
too.


Anne

--
***************************************************
Anne Wilson                     UCAR Unidata Program
anne@unidata.ucar.edu                  P.O. Box 3000
                                  Boulder, CO  80307
----------------------------------------------------
Unidata WWW server       http://www.unidata.ucar.edu/
****************************************************




Technical Details
Message-ID: <3922D896.DE4D25D5@unidata.ucar.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!not-for-mail
References: <3921BBF8.F251A540@unidata.ucar.edu> <brad-EFB5E3.12323217052000@news.skynet.be>

Show Full Headers
Complete Article Headers
Message-ID: <3922D896.DE4D25D5@unidata.ucar.edu>
Subject: Re: Encoding binary data
Date: Wed, 17 May 2000 00:00:00 +0000
From: Anne Wilson <anne@unidata.ucar.edu>
References: <3921BBF8.F251A540@unidata.ucar.edu> <brad-EFB5E3.12323217052000@news.skynet.be>
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!not-for-mail
X-Deja-AN: 624620061
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: UCAR
Mime-Version: 1.0
Newsgroups: news.software.nntp