🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #46482

Re: Encoding binary data

#46482
From: Anne Wilson
Date: Thu, 18 May 2000 00:00
50 lines
2159 bytes
Andrew Gierth wrote:

> As far as NNTP is concerned, the limits on data are:
>
>   - no NUL characters (many implementations choke on them)
>
>   - CR+LF should occur only together and only as a line terminator
>     (some implementations convert line endings to local format on
>     reception, this usually results in bare LFs being converted to
>     CR+LF on transmission)

Sorry - I don't follow the "only as a line terminator" part.  If CRLF
should occur in my binary file,  is that a problem?

>
>
>   - '.' at the start of a line must be escaped with another '.'
>

Why is this?

> MIME base64 is designed for robustness not for maximum efficiency, the
> 64 data characters are chosen from the set that is least prone to
> mangling when passing through foreign gateways (especially ones that
> translate character sets). In an NNTP-only environment you can do much
> better with a custom encoding algorithm.
>
> --
> Andrew.

It would be an NNTP-only environment.  Maybe custom encoding is worth
investigating.

Thanks again, Andrew!

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: <3924568F.463ADE1@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> <87bt2511sn.fsf@erlenstar.demon.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <3924568F.463ADE1@unidata.ucar.edu>
Subject: Re: Encoding binary data
Date: Thu, 18 May 2000 00:00:00 +0000
From: Anne Wilson <anne@unidata.ucar.edu>
References: <3921BBF8.F251A540@unidata.ucar.edu> <87bt2511sn.fsf@erlenstar.demon.co.uk>
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: 625137247
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