From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/34658 Path: main.gmane.org!not-for-mail From: "Steven E. Harris" Newsgroups: gmane.emacs.gnus.general Subject: Re: SMTP question (not quite Gnus-related) Date: 08 Feb 2001 09:11:51 -0800 Organization: Tenzing Communications Inc. Sender: owner-ding@hpc.uh.edu Message-ID: <87pugtm754.fsf@torus.tenzing.com> References: <87y9vujkvd.fsf@torus.tenzing.com> <87lmrij8e2.fsf@inanna.rimspace.net> <8766imnfa9.fsf@torus.tenzing.com> <874ry6j5i7.fsf@inanna.rimspace.net> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1035170543 31526 80.91.224.250 (21 Oct 2002 03:22:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:22:23 +0000 (UTC) Return-Path: Original-Received: from karazm.math.uh.edu (karazm.math.uh.edu [129.7.128.1]) by mailhost.sclp.com (Postfix) with ESMTP id 5D67ED049D for ; Thu, 8 Feb 2001 12:18:06 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by karazm.math.uh.edu (8.9.3/8.9.3) with ESMTP id LAC10448; Thu, 8 Feb 2001 11:17:24 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 08 Feb 2001 11:16:33 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id LAA21161 for ; Thu, 8 Feb 2001 11:16:22 -0600 (CST) Original-Received: from ts-exch01.tenzing.com (ts-exch01.tenzing.com [63.115.0.25]) by mailhost.sclp.com (Postfix) with ESMTP id 29FA9D049D for ; Thu, 8 Feb 2001 12:16:52 -0500 (EST) Original-Received: from torus (torus.seattle.tenzing.com [63.115.3.200]) by ts-exch01.tenzing.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1PWQJA7Z; Thu, 8 Feb 2001 09:16:51 -0800 Original-Received: from seh by torus with local (Exim 3.12 #1 (Debian)) id 14Qubn-0003cv-00 for ; Thu, 08 Feb 2001 09:11:51 -0800 Original-To: ding@gnus.org User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Capitol Reef) Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 25 Xref: main.gmane.org gmane.emacs.gnus.general:34658 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:34658 Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Gro=DFjohann) writes: > Presumably, an SMTP server reading the DATA command will also read the > that follows it. Hence, the is not available for the > subsequent end of data indication anymore. Yes! That's exactly my point! The 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 ".," then that leaves the question about mail messages that don't end with a . If the protocol requires an insertion of an extra to get that period on a line of its own, then really that extra 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. --=20 Steven E. Harris :: steven.harris@tenzing.com Tenzing :: http://www.tenzing.com