Re: [apps-discuss] Pete Resnick's Yes on draft-ietf-appsawg-malformed-mail-10: (with COMMENT)

Pete Resnick <presnick@qti.qualcomm.com> Wed, 27 November 2013 15:37 UTC

Return-Path: <presnick@qti.qualcomm.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 768E41ACCEA; Wed, 27 Nov 2013 07:37:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.002
X-Spam-Level:
X-Spam-Status: No, score=-2.002 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xCfdK0ctVcUF; Wed, 27 Nov 2013 07:36:58 -0800 (PST)
Received: from sabertooth02.qualcomm.com (sabertooth02.qualcomm.com [65.197.215.38]) by ietfa.amsl.com (Postfix) with ESMTP id EA6301ACC8A; Wed, 27 Nov 2013 07:36:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1385566617; x=1417102617; h=message-id:date:from:mime-version:to:cc:subject: references:in-reply-to:content-transfer-encoding; bh=Dz/zUpL/bGcXlFmUrFDwJJFXAajzfW7GsXtfW2XD9pA=; b=aS+6BjwXsO/bnETdrLot6keALA9fnqCp7puGlxXoGETXZlpT0u9IxHz7 EfY+u0YF4EnS319OGrvmPZo56+Si1rxuDNeHWCskRuY8rjnaHF25JHGRU DT6l20e4672IejuanzjcVRAyHZR0q1uzaI7lvCpw9qUhtkgnZTtonGRtJ Y=;
X-IronPort-AV: E=McAfee;i="5400,1158,7271"; a="55946977"
Received: from ironmsg03-l.qualcomm.com ([172.30.48.18]) by sabertooth02.qualcomm.com with ESMTP; 27 Nov 2013 07:36:57 -0800
X-IronPort-AV: E=McAfee;i="5400,1158,7271"; a="578523528"
Received: from nasanexhc08.na.qualcomm.com ([172.30.39.7]) by Ironmsg03-L.qualcomm.com with ESMTP/TLS/RC4-SHA; 27 Nov 2013 07:36:57 -0800
Received: from resnick2.qualcomm.com (172.30.39.5) by qcmail1.qualcomm.com (172.30.39.7) with Microsoft SMTP Server (TLS) id 14.3.158.1; Wed, 27 Nov 2013 07:36:57 -0800
Message-ID: <52961196.5080700@qti.qualcomm.com>
Date: Wed, 27 Nov 2013 09:36:54 -0600
From: Pete Resnick <presnick@qti.qualcomm.com>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.7; en-US; rv:1.9.1.9) Gecko/20100630 Eudora/3.0.4
MIME-Version: 1.0
To: Ned Freed <ned.freed@mrochek.com>
References: <20131120223533.8958.23858.idtracker@ietfa.amsl.com> <CAL0qLwbH0e_Z-9OKNf3cJ9RpsRLK6vmnQtfj8dbZkLxmz2GaRA@mail.gmail.com> <01P14CWFCE5A00004G@mauve.mrochek.com> <5294DDEE.4070000@qti.qualcomm.com> <CAL0qLwY4Zbig3pb9W41fo5ttt2FgLPyOwPxLFQFJuUTtO5D75A@mail.gmail.com> <01P19CETU4PU00004G@mauve.mrochek.com>
In-Reply-To: <01P19CETU4PU00004G@mauve.mrochek.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Originating-IP: [172.30.39.5]
Cc: "draft-ietf-appsawg-malformed-mail@tools.ietf.org" <draft-ietf-appsawg-malformed-mail@tools.ietf.org>, IETF Apps Discuss <apps-discuss@ietf.org>, SM <sm+ietf@elandsys.com>, "appsawg-chairs@tools.ietf.org" <appsawg-chairs@tools.ietf.org>, The IESG <iesg@ietf.org>
Subject: Re: [apps-discuss] Pete Resnick's Yes on draft-ietf-appsawg-malformed-mail-10: (with COMMENT)
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss/>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 27 Nov 2013 15:37:12 -0000

On 11/27/13 12:04 AM, Ned Freed wrote:

> Perhaps a change to something like this is in order:
>
>     While legitimate messages can contain more than one Return-Path
>     header field, such usage is often an error rather that a valid
>     message containing multiple header field blocks as described in
>     sections 3.6 of [RFC 5322]. Accordingly, when a message containing
>     multiple Return-path: header fields is encountered, all but the
>     topmost one is to be disregarded, as it is most likely to have
>     been added nearest to the mailbox that received that message.
>
> I think that should cover it.
>    

wfm.

> That said, I've always regarded the notion that such blocks can be reliably
> distinguished as nothing but specious nonsense, and that fact that RFC 5322
> doesn't contain language recommending against such usage as a problematic
> aspect of that specification.
>    

Yeah, well, I was still bright-eyed and bushy-tailed when I wrote that 
text. Grumpy-old me of today would have said different things.

> The problem is fundamental: Aside from the dependency of Return-path: fields on
> Received: fields (but not vice versa), all of the fields in one of these blocks
> are optional. And all the rules only say that fielde must be prepended; they
> say nothing about which of the various fields in a given block have to be
> prepended first. It is therefore perfectly valid in a one step MSA/MDA situation
> to prepend Return-path: first, then Received:, then Resent-*. Or any other
> order, and that plus the optionality of all the field creates a situation where
> there is no way to determine the boundaries between blocks with any degree of
> relability.
>    

Actually, that's not quite true. The spec is clear that the Return-Path: 
is always on top of it's associated Received: fields. And though not 
crystal clear, it certainly implies that the Resent-Fields: get 
prepended *before* being reintroduced into the transport system, which 
is what ought to be prepending the Received: and Return-Path: fields. 
But yes, ambiguity abounds.

In any event, I agree with Ned that this is discussion of spilled milk 
that has gone over the bridge or under the dam or something. The fix he 
suggests above is perfectly fine for this document.

pr

-- 
Pete Resnick<http://www.qualcomm.com/~presnick/>
Qualcomm Technologies, Inc. - +1 (858)651-4478