Gnus development mailing list
 help / color / mirror / Atom feed
From: "Steven E. Harris" <steven.harris@tenzing.com>
Subject: Re: SMTP question (not quite Gnus-related)
Date: 07 Feb 2001 17:18:22 -0800	[thread overview]
Message-ID: <8766imnfa9.fsf@torus.tenzing.com> (raw)
In-Reply-To: Daniel Pittman's message of "08 Feb 2001 12:00:53 +1100"

Daniel Pittman <daniel@rimspace.net> writes:

> Specifically, the explanation makes it possible to write a
> stream-oriented SMTP `DATA' reader easily. To be strictly conforming,
> you read bytes and scan for the sequence described. When you see it and
> it alone, terminate the reading of the `DATA' command.

That's exactly what I've written - two of them, in fact. Each is based
on a different state machine, depending upon differing interpretations
of RFC821. My question still stands, though:

  What about an "empty" message?

Is this supposed to be okay?

,----
| DATA<CRLF>
| .<CRLF>
`----

If so, then where is the terminator for the "DATA" command string?
That first <CRLF> either belongs to the "DATA" as a command
terminator, or to the period as the start of the message
terminator. It can't be both. Most MTAs accept it, though.

I'm now thinking that a completely empty message like the one above
isn't a valid RFC822 message anyway, but it still seems like there's a
hole in RFC821 on this.

-- 
Steven E. Harris        :: steven.harris@tenzing.com
Tenzing                 :: http://www.tenzing.com



  reply	other threads:[~2001-02-08  1:18 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-29 18:04 Steven E. Harris
2001-02-07 17:56 ` Kai Großjohann
2001-02-08  1:00   ` Daniel Pittman
2001-02-08  1:18     ` Steven E. Harris [this message]
2001-02-08  2:03       ` Daniel Pittman
2001-02-08 13:24         ` Kai Großjohann
2001-02-08 17:11           ` Steven E. Harris
2001-02-08 17:25             ` Paul Jarc
2001-02-08 17:30               ` Paul Jarc
2001-02-08 18:02               ` Steven E. Harris
2001-02-08 18:20                 ` Paul Jarc
2001-02-09 12:09                 ` Kai Großjohann
2001-02-09 17:33                   ` Steven E. Harris
2001-02-08 17:33             ` Kai Großjohann
2001-02-08 18:07               ` Steven E. Harris
2001-02-09 12:11                 ` Kai Großjohann
2001-02-09 17:26                   ` Steven E. Harris
2001-02-09  0:42           ` Daniel Pittman
2001-02-08 13:22     ` Kai Großjohann
2001-02-08 17:18       ` Steven E. Harris
2001-02-08 17:37         ` Kai Großjohann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8766imnfa9.fsf@torus.tenzing.com \
    --to=steven.harris@tenzing.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).