Thread View: news.software.nntp
14 messages
14 total messages
Started by Zir
Sun, 22 Jun 2003 03:39
Question about rfc997, 2.4.1 (double periods)
Author: Zir
Date: Sun, 22 Jun 2003 03:39
Date: Sun, 22 Jun 2003 03:39
33 lines
1863 bytes
1863 bytes
The spec clearly states that a
.CRLF means end of message. That's easy.
However I am not quite so sure about the rest of the
section. It says that when a line, begins with a '.', the period
is to be doubled on posting and un-doubled on reading.
My question is how would it apply in these cases:
A) The line is:
.
( in other words, the user wants to post a message that
contains a single line, starting with a period, followed
by a CRLF )
B) The line is:
. Hello Mom!
( In other words, a user wants to post a message that begins with
a period, followed by an NON CRLF string of characters,
terminated by a CRLF )
(A) seems quite clear; double it or it will be taken as 'End of Message'
(B) is more interesting, because the period is NOT followed by a CRLF,
meaning it MUST not be considered as 'End of Message'. In this case,
should the leading period be double, and if so _WHY_.
Thanks for the info!
--
-max;
Re: Question about rfc997, 2.4.1 (double periods)
Author: Curt Welch
Date: Sun, 22 Jun 2003 03:58
Date: Sun, 22 Jun 2003 03:58
68 lines
3811 bytes
3811 bytes
zirggc@endless-nameless.net (Zir) wrote: > The spec clearly states that a > .CRLF means end of message. That's easy. Of course DOT CR LF only ends the message when it appears at the begining of the line. That is actually what the spec says. > However I am not quite so sure about the rest of the > section. It says that when a line, begins with a '.', the period > is to be doubled on posting and un-doubled on reading. > > My question is how would it apply in these cases: > A) The line is: > . > ( in other words, the user wants to post a message that > contains a single line, starting with a period, followed > by a CRLF ) > > B) The line is: > . Hello Mom! > > ( In other words, a user wants to post a message that begins with > a period, followed by an NON CRLF string of characters, > terminated by a CRLF ) > > (A) seems quite clear; double it or it will be taken as 'End of Message' > > (B) is more interesting, because the period is NOT followed by a CRLF, > meaning it MUST not be considered as 'End of Message'. In this case, > should the leading period be double, and if so _WHY_. Yes it should be doubled and the _WHY_ is mostly because the spec says so and all the other news servers and newsreaders in the world do it that so if you don't your article will be corrupted. But the reason it says so is because it gets more complex if you don't so they picked the algortim that was the simplest to implement. Think of the case where someone wants to post an article with a line containing only DOT DOT. You have to add a dot there as well or else it will be turned back to a line with a single dot when read. SO you need to escape a line with a single dot, and a line with two dots. But what if you want to post an article with a line that has three dots? You have to add a dot there as well so it's not confused with the two dot line. But if it's a line with 3 dots followed by " hello", you don't have to add the dot because there's no chance of confusion. So, now the algortihm looks like this: If the line you are trying to post has one or more dots on the line and nothing else, then add an extra dot. When reading lines, if the line has nothing but dots on the line, then take the first dot off. If it's got somethihg else at the end of the line other than a DOTs, then don't take the leading dot off. See how messy it gets? So they picked the easy algortihm - dot stuff _every_ line which begins with a dot and on reception, remove leading dots for all lines. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Question about rfc997, 2.4.1 (double periods)
Author: GregMo
Date: Sun, 22 Jun 2003 11:25
Date: Sun, 22 Jun 2003 11:25
16 lines
1482 bytes
1482 bytes
curt@kcwc.com (Curt Welch) wrote in news:20030621235852.309 $av@newsreader.com: > So they picked the easy algortihm - dot stuff _every_ line which begins > with a dot and on reception, remove leading dots for all lines. Oh? Which was first, news or mail? Mail also uses this to end a message. Cheers, GregMo -- The shortest sentence in the English language: "No." The longest sentence in the English language: "I do."
Re: Question about rfc997, 2.4.1 (double periods)
Author: Neil W Rickert
Date: Sun, 22 Jun 2003 14:35
Date: Sun, 22 Jun 2003 14:35
7 lines
1000 bytes
1000 bytes
GregMo <Greg-nospam-Mo@Wyld-please-Ryde.net> writes: >Oh? Which was first, news or mail? Mail also uses this to end a message. SMTP (email) is older than NNTP.
Re: Question about rfc997, 2.4.1 (double periods)
Author: GregMo
Date: Sun, 22 Jun 2003 16:00
Date: Sun, 22 Jun 2003 16:00
18 lines
1590 bytes
1590 bytes
Neil W Rickert <rickert+nn@cs.niu.edu> wrote in news:bd4eqm$6mh$1 @husk.cso.niu.edu: >>Oh? Which was first, news or mail? Mail also uses this to end a message. > > SMTP (email) is older than NNTP. Yeah, I'd thought that it was as well :-) Just razzing Curt a little on a technicality in fun is all :-) Cheers, GregMo -- The shortest sentence in the English language: "No." The longest sentence in the English language: "I do."
Re: Question about rfc997, 2.4.1 (double periods)
Author: Curt Welch
Date: Sun, 22 Jun 2003 19:04
Date: Sun, 22 Jun 2003 19:04
21 lines
1903 bytes
1903 bytes
GregMo <Greg-nospam-Mo@Wyld-please-Ryde.net> wrote: > Neil W Rickert <rickert+nn@cs.niu.edu> wrote in news:bd4eqm$6mh$1 > @husk.cso.niu.edu: > > >>Oh? Which was first, news or mail? Mail also uses this to end a > >>message. > > > > SMTP (email) is older than NNTP. > > Yeah, I'd thought that it was as well :-) Just razzing Curt a little on > a technicality in fun is all :-) Ah, but here's another fun quesiton (which I can't answer without doing some research)... Which is older, SMTP or Usenet? -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Question about rfc997, 2.4.1 (double periods)
Author: Andrew - Supernews
Date: Sun, 22 Jun 2003 19:23
Date: Sun, 22 Jun 2003 19:23
17 lines
1661 bytes
1661 bytes
In article <20030622150404.933$8h@newsreader.com>, Curt Welch wrote: > Ah, but here's another fun quesiton (which I can't answer without doing > some research)... > > Which is older, SMTP or Usenet? Usenet. The first draft of the mail transfer protocol which was later simplified to become SMTP is dated September 1980, by which time Usenet had already been running for several months. Prior to the development of the a mail protocol, mail transfer on the ARPANET was done via the FTP protocol. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: Question about rfc997, 2.4.1 (double periods)
Author: GregMo
Date: Sun, 22 Jun 2003 19:58
Date: Sun, 22 Jun 2003 19:58
21 lines
1946 bytes
1946 bytes
Andrew - Supernews <andrew+nonews@supernews.com> wrote in news:slrnbfc0hp.2821.andrew+nonews@trinity.supernews.net: > Usenet. The first draft of the mail transfer protocol which was later > simplified to become SMTP is dated September 1980, by which time Usenet > had already been running for several months. > > Prior to the development of the a mail protocol, mail transfer on the > ARPANET was done via the FTP protocol. Doh! So Curt was right and I was in error... Oh well, it was all in fun after all :-) Cheers, GregMo -- The shortest sentence in the English language: "No." The longest sentence in the English language: "I do."
Re: Question about rfc997, 2.4.1 (double periods)
Author: Neil W Rickert
Date: Sun, 22 Jun 2003 21:24
Date: Sun, 22 Jun 2003 21:24
23 lines
1514 bytes
1514 bytes
curt@kcwc.com (Curt Welch) writes: >GregMo <Greg-nospam-Mo@Wyld-please-Ryde.net> wrote: >> Neil W Rickert <rickert+nn@cs.niu.edu> wrote in news:bd4eqm$6mh$1 >> @husk.cso.niu.edu: >> > SMTP (email) is older than NNTP. >> Yeah, I'd thought that it was as well :-) Just razzing Curt a little on >> a technicality in fun is all :-) >Ah, but here's another fun quesiton (which I can't answer without doing >some research)... >Which is older, SMTP or Usenet? But that is surely a confused (apples and oranges) question. Usenet is older than NNTP, and email is older than SMTP. I would guess that email is older than usenet, although usenet is surely older than SMTP.
Re: Question about rfc997, 2.4.1 (double periods)
Author: Curt Welch
Date: Sun, 22 Jun 2003 21:54
Date: Sun, 22 Jun 2003 21:54
27 lines
2069 bytes
2069 bytes
Neil W Rickert <rickert+nn@cs.niu.edu> wrote: > curt@kcwc.com (Curt Welch) writes: > >Which is older, SMTP or Usenet? > > But that is surely a confused (apples and oranges) question. Not at all. We are comparing age to age and that surely is a apples to apples comparison (as long as we keep this in the context of speeds << c and earth-sized distances). > Usenet is older than NNTP, and email is older than SMTP. > > I would guess that email is older than usenet, although usenet is > surely older than SMTP. email is probably at least 20 years older than usenet if not more. I even have copies of my personal e-mail dating back to '77 which pre-dates usenet. The usenet vs SMTP question was more interesting because they are much closer in age. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Question about rfc997, 2.4.1 (double periods)
Author: Neil W Rickert
Date: Sun, 22 Jun 2003 22:13
Date: Sun, 22 Jun 2003 22:13
34 lines
2055 bytes
2055 bytes
curt@kcwc.com (Curt Welch) writes: >Neil W Rickert <rickert+nn@cs.niu.edu> wrote: >> curt@kcwc.com (Curt Welch) writes: >> >Which is older, SMTP or Usenet? >> But that is surely a confused (apples and oranges) question. >Not at all. We are comparing age to age and that surely is a apples to >apples comparison (as long as we keep this in the context of speeds << c >and earth-sized distances). You are comparing SMTP (which is a protocol), with usenet (which is not a protocol). It makes more sense to compare email to usenet, or SMTP to NNTP. >> Usenet is older than NNTP, and email is older than SMTP. >> I would guess that email is older than usenet, although usenet is >> surely older than SMTP. >email is probably at least 20 years older than usenet if not more. I even >have copies of my personal e-mail dating back to '77 which pre-dates >usenet. >The usenet vs SMTP question was more interesting because they are much >closer in age. However, usenet was originally handled via uucp modem connections. Network transmission came later. The design of the NNTP protocol used the SMTP protocol as a guide.
Re: Question about rfc997, 2.4.1 (double periods)
Author: Zir
Date: Sun, 22 Jun 2003 23:38
Date: Sun, 22 Jun 2003 23:38
22 lines
1640 bytes
1640 bytes
curt@kcwc.com (Curt Welch) wrote in message news:<20030621235852.309$av@newsreader.com>... > zirggc@endless-nameless.net (Zir) wrote: [[snip]] > Think of the case where someone wants to post an article with a line > containing only DOT DOT. You have to add a dot there as well or else it > will be turned back to a line with a single dot when read. SO you need to > escape a line with a single dot, and a line with two dots. [[snip]] Aha! I had not considered that case, which in hindsight seems quite obvious. Perhaps this will teach me to think another few minutes before posting. Thanks again for the info, -- -max;
Re: Question about rfc997, 2.4.1 (double periods)
Author: Curt Welch
Date: Mon, 23 Jun 2003 01:38
Date: Mon, 23 Jun 2003 01:38
20 lines
2202 bytes
2202 bytes
Neil W Rickert <rickert+nn@cs.niu.edu> wrote: > However, usenet was originally handled via uucp modem connections. Yeah, most of us here are well aware of these facts. I ran uucp systems for about 5 years of my life and ran usenet feeds over them for quite some time as well. kcwc.com started out as uunet!kcwc. My e-mail address for many years was uunet!kcwc!curt. And this was running on a Unix box out of my home at a time when most people didn't even know what a PC was and long before PCs were running Unix. The mixing of "usenet" (the message system) and "SMTP" (an internet protocol) was very intentional on my part. It may have seemed odd to you (and passed over the head of others) but it was no accident. Would you also have these problems if I had asked, "Which came first, the Hot Dog, or Baseball?" -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Question about rfc997, 2.4.1 (double periods)
Author: Neil W Rickert
Date: Mon, 23 Jun 2003 04:29
Date: Mon, 23 Jun 2003 04:29
11 lines
1180 bytes
1180 bytes
curt@kcwc.com (Curt Welch) writes: >The mixing of "usenet" (the message system) and "SMTP" (an internet >protocol) was very intentional on my part. It may have seemed odd to you >(and passed over the head of others) but it was no accident. Would you >also have these problems if I had asked, "Which came first, the Hot Dog, or >Baseball?" That would also seem a little odd.
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