Thread View: news.software.nntp
2 messages
2 total messages
Started by Florian Zschocke
Wed, 26 May 2004 20:54
Some questions about text messages
Author: Florian Zschocke
Date: Wed, 26 May 2004 20:54
Date: Wed, 26 May 2004 20:54
18 lines
1759 bytes
1759 bytes
Hello NG, 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. 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. Is there anything else I have to look for ? As I have seen now, my newsserver deletes all points at the beginning of a line. Are my efforts to avoid the termination signal useless and will all nntp-server act this way ? Thank you for your time and help Florian
Re: Some questions about text messages
Author: 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.
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