From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/34628 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: 07 Feb 2001 17:18:22 -0800 Organization: Tenzing Communications Inc. Sender: owner-ding@hpc.uh.edu Message-ID: <8766imnfa9.fsf@torus.tenzing.com> References: <87y9vujkvd.fsf@torus.tenzing.com> <87lmrij8e2.fsf@inanna.rimspace.net> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035170520 31384 80.91.224.250 (21 Oct 2002 03:22:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:22:00 +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 43873D049D for ; Wed, 7 Feb 2001 20:24:19 -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 TAC21571; Wed, 7 Feb 2001 19:24:04 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 07 Feb 2001 19:23:01 -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 TAA16515 for ; Wed, 7 Feb 2001 19:22:51 -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 3B2BFD049D for ; Wed, 7 Feb 2001 20:23:20 -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 1PWQ20XV; Wed, 7 Feb 2001 17:23:20 -0800 Original-Received: from seh by torus with local (Exim 3.12 #1 (Debian)) id 14Qfj4-0003DE-00 for ; Wed, 07 Feb 2001 17:18:22 -0800 Original-To: ding@gnus.org In-Reply-To: Daniel Pittman's message of "08 Feb 2001 12:00:53 +1100" User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Capitol Reef) Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 32 Xref: main.gmane.org gmane.emacs.gnus.general:34628 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:34628 Daniel Pittman 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 | . `---- If so, then where is the terminator for the "DATA" command string? That first 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