🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81684

Re:  I'd love to post Unicode Message-ID's.

#81684
From: Russ Allbery
Date: Wed, 26 Aug 2009 23:13
53 lines
3726 bytes
_@Jeff_Relf.Seattle.inValid writes:

> Thank you, Russ Allbery, that was very nice.
> The "\r\n.\r\n" terminator isn't part of a binary·body, of course.

Right.  The NNTP protocol says that the first \r\n there is part of the
body, which is the main reason why one can't just treat it as a byte
stream and not worry about the issue.

> I posted my picture ( www.JeffRelf.F-M.FM/Jeff_Relf_Aug_2005.JPG ),
> raw and 100 percent unAltered, 65 kiloBytes; Message-ID:
>   _@Jeff_Relf.Seattle.2009_Aug15.8.29pm.Lt
>   [ via News.Shared-Secrets.COM:80, a Diablo server ]
>   
> I raw·downloaded/copied the body to a file;
> it displays perfectly, no alterations.

A lot of binary data formats don't care about the trailing \r\n, but some
will.

> The only overhead was the header;
> posted, the size of the file's data was neither inflated nor deflated.

> When it comes to posting raw·binary, I'll stick to Diablo servers.

You pretty much have to, since INN will reject such messages.  :)

> Switching topics, I'd love to post Unicode Message-ID's, isn't UTF-8 the
> charset of the NNTP header ?

NNTP uses Unicode.  The article format, which is not governed by NNTP,
does not for header fields.  Usenet articles are essentially a profile of
mail messages, with some variations, and mail messages do not allow
Unicode in header fields without RFC 2047 encoding, and then only in
specific header fields.  Based on the long discussions that have happened
about this in the e-mail working group and the attitude of the IETF on
this point and on backward compatibility in e-mail in general, I think
it's extremely unlikely that this will ever change.

One can just ignore that and send UTF-8 in headers and by and large all
the software copes, but since some Usenet hierarchies have a local
convention that all 8-bit character sets are ISO 8859-15 or some other
character set, you won't get reliable results.  You can't, of course, send
UTF-16 because it contains nul characters and very little software is
going to cope with that.  Given that UTF-8 is the preferred Unicode
encoding for IETF network protocols anyway, I personally don't think it's
worth putting any effort into making UTF-16 work.

-- 
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: <87tyzu1856.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.glorb.com!headwall.stanford.edu!news.stanford.edu!not-for-mail
References: <h6mgsr$3q2$2@tioat.net> <slrnh8tine.bqe.steve@news.mixmin.net> <_@Jeff_Relf.Seattle.2009_Aug25.6.54pm.W4> <slrnh99sq6.bqe.steve@news.mixmin.net> <_@Jeff_Relf.Seattle.2009_Aug26.1.46pm.5X> <87ocq2479l.fsf@windlord.stanford.edu> <_@Jeff_Relf.Seattle.2009_Aug26.4.03pm.lY>

Show Full Headers
Complete Article Headers
Message-ID: <87tyzu1856.fsf@windlord.stanford.edu>
Subject: Re:  I'd love to post Unicode Message-ID's.
Date: Wed, 26 Aug 2009 16:13:09 -0700
From: Russ Allbery <rra@stanford.edu>
References: <h6mgsr$3q2$2@tioat.net> <slrnh8tine.bqe.steve@news.mixmin.net> <_@Jeff_Relf.Seattle.2009_Aug25.6.54pm.W4> <slrnh99sq6.bqe.steve@news.mixmin.net> <_@Jeff_Relf.Seattle.2009_Aug26.1.46pm.5X> <87ocq2479l.fsf@windlord.stanford.edu> <_@Jeff_Relf.Seattle.2009_Aug26.4.03pm.lY>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.glorb.com!headwall.stanford.edu!news.stanford.edu!not-for-mail
Newsgroups: alt.free.newsservers,news.software.nntp
Organization: The Eyrie
Lines: 53
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: news.stanford.edu 1251328391 11931 171.67.225.134 (26 Aug 2009
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
Cancel-Lock: sha1:qnBK8VPCrBqUqVqjMU59/KkrGj4=