Article View: news.software.nntp
Article #69259Re: Some questions about text messages
From: Russ Allbery
Date: Wed, 26 May 2004 21:32
Date: Wed, 26 May 2004 21:32
37 lines
2701 bytes
2701 bytes
Florian Zschocke <edv@zschocke-berlin.de> writes:
> I'm working on a new newsreader client for OSX.
> Before sending a mime text-message to the server my program dose the
> following :
> 1. It breaks the lines before 70 characters.
> 2. It truncates a word if it is longer 998 characters.
This isn't normally what you want to do. In practice, news software will
handle lines of unlimited length in the body, but if you want to stay
strictly MIME-compliant, you can switch to quoted-printable encoding if
there are lines longer than 998 characters and use its ability to continue
lines. Essentially all reader software these days can understand
quoted-printable.
(Of course, in general, lines should never be that long; they should be
wrapped instead. But you already have that.)
> 3. If there is a single point at the beginning of line it inserts a
> blank to avoid the \r\n.\r\n termination signal.
That's not the correct thing to do. From the latest NNTP draft:
3. If any subsequent line begins with the "termination octet" ("."
or %x2E), that line MUST be "byte-stuffed" by pre-pending an
additional termination octet to that line of the response.
In other words, any line that begins with a point should just have another
point added to the beginning of that line.
--
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:
<87vfiiri18.fsf@windlord.stanford.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.20140818.mbox.gz!num2.nntp.dca.giganews.com!number1.nntp.dca.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!64.42.15.2!HSNX.atgi.net!news.kjsl.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mailReferences:
<40b50414$0$13297$9b4e6d93@newsread2.arcor-online.net>Show Full Headers
Complete Article Headers
Message-ID: <87vfiiri18.fsf@windlord.stanford.edu> Subject: Re: Some questions about text messages Date: Wed, 26 May 2004 14:32:35 -0700 From: Russ Allbery <rra@stanford.edu> References: <40b50414$0$13297$9b4e6d93@newsread2.arcor-online.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.20140818.mbox.gz!num2.nntp.dca.giganews.com!number1.nntp.dca.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!64.42.15.2!HSNX.atgi.net!news.kjsl.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 37 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1085607155 12998 171.64.19.147 (26 May 2004 X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux) Cancel-Lock: sha1:yRKqxdRLD7ujkFL53qI78TYvfLA=