From: "Steven E. Harris" <steven.harris@tenzing.com>
Subject: Re: SMTP question (not quite Gnus-related)
Date: 08 Feb 2001 09:11:51 -0800 [thread overview]
Message-ID: <87pugtm754.fsf@torus.tenzing.com> (raw)
In-Reply-To: <vafofwdgvea.fsf@lucy.cs.uni-dortmund.de>
Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:
> Presumably, an SMTP server reading the DATA command will also read the
> <CRLF> that follows it. Hence, the <CRLF> is not available for the
> subsequent end of data indication anymore.
Yes! That's exactly my point! The <CRLF> following DATA is already
"gone" by the time my stream starts eating bytes, so I have to either
start assuming I've just seen it, or start waiting for it.
If, as Kai suggests, we should take the terminator to only be
".<CRLF>," then that leaves the question about mail messages that
don't end with a <CRLF>. If the protocol requires an insertion of an
extra <CRLF> to get that period on a line of its own, then really that
extra <CRLF> should be stripped as part of the protocol decoding.
It makes for a messy state machine if you're trying to catch a
five-byte terminator, but want to permit a three-byte terminator right
from your start state. I have it worked out, but it's ugly. RFC821 has
been around long enough that I figured there must have been some
well-known discussion about this.
--
Steven E. Harris :: steven.harris@tenzing.com
Tenzing :: http://www.tenzing.com
next prev parent reply other threads:[~2001-02-08 17:11 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
2001-02-08 2:03 ` Daniel Pittman
2001-02-08 13:24 ` Kai Großjohann
2001-02-08 17:11 ` Steven E. Harris [this message]
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=87pugtm754.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).