Re: [apps-discuss] Multipart/report, draft-kucherawy-rfc3462bis-01.txt

Alessandro Vesely <vesely@tana.it> Thu, 28 July 2011 19:19 UTC

Return-Path: <vesely@tana.it>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DACD91F0C3C for <apps-discuss@ietfa.amsl.com>; Thu, 28 Jul 2011 12:19:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.752
X-Spam-Level:
X-Spam-Status: No, score=-4.752 tagged_above=-999 required=5 tests=[AWL=-0.033, BAYES_00=-2.599, HELO_EQ_IT=0.635, HOST_EQ_IT=1.245, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0UXcGuTk6zoM for <apps-discuss@ietfa.amsl.com>; Thu, 28 Jul 2011 12:19:39 -0700 (PDT)
Received: from wmail.tana.it (www.tana.it [62.94.243.226]) by ietfa.amsl.com (Postfix) with ESMTP id F02C31F0C39 for <apps-discuss@ietf.org>; Thu, 28 Jul 2011 12:19:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tana.it; s=test; t=1311880777; bh=IP80awngvSb8786VqjGQCz7gTKCXPfClYbBp7OfQu/Q=; l=2798; h=Message-ID:Date:From:MIME-Version:To:References:In-Reply-To: Content-Transfer-Encoding; b=hBGTRJTw9yXgW9cEeKvelYwMYfaRfKLc9RIyfq4mXtp7IcLFAWkoTp37XNfpDvCO9 ydFVzFqcex37yk2HbVZHUPwC0UmKWkzsgzl5eM4cZ51/+LroEs6Z+TzZhCjblSvvuq QbudyMXQpeu140idZHy5yP2yBSei+j5lG1lx8jwE=
Received: from [172.25.197.158] (pcale.tana [172.25.197.158]) (AUTH: CRAM-MD5 515, TLS: TLS1.0,256bits,RSA_AES_256_CBC_SHA1) by wmail.tana.it with ESMTPSA; Thu, 28 Jul 2011 21:19:37 +0200 id 00000000005DC039.000000004E31B649.00005D24
Message-ID: <4E31B648.2020802@tana.it>
Date: Thu, 28 Jul 2011 21:19:36 +0200
From: Alessandro Vesely <vesely@tana.it>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11
MIME-Version: 1.0
To: apps-discuss@ietf.org
References: <20110727052622.18893.75906.idtracker@ietfa.amsl.com> <4E3013C8.7060203@tana.it> <F5833273385BB34F99288B3648C4F06F13512DF461@EXCH-C2.corp.cloudmark.com> <01O45CD1RC5O00RCTX@mauve.mrochek.com>
In-Reply-To: <01O45CD1RC5O00RCTX@mauve.mrochek.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Subject: Re: [apps-discuss] Multipart/report, draft-kucherawy-rfc3462bis-01.txt
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
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: Thu, 28 Jul 2011 19:19:40 -0000

On 28/Jul/11 00:55, ned+apps-discuss@mrochek.com wrote:
> Multipart/report is, or should be, a very general construct used to report
> pretty much anything relating to messages or perhaps even more general MIME
> content.
> 
> The restriction that generated DSNs and MDNs (two specific types of report)
> need to be placed at the top-level is what's needed here. Nothing more.

IMHO "generated" is not very clear here.  I roughly understand it as
referring to the act of issuing a report, automatically or not.

BTW, ARF reports, as currently used, probably have to be at top level
as well.

> In fact the best way to handle this would be to put the restriction into the
> DSN and MDN specifications that build on the multipart/report framework, and
> say something like, "Uses of the multipart/report container format MAY restrict
> the contexts in which a particular report type can appear."

Does that mean top-level implies "active"?

> [moved] We should not attempt to guess at possible future uses of
> the report framework. This sort of anticipatory restriction is what
> gets us into trouble with great regularity, and we need to stop
> doing it.

In general, I agree.  But here we are introducing a split, or
categorization, to distinguish "active", "generated", or "top-level"
from other kinds of report transmission.  How can we do so without
affecting future report types as well?

>>> I'm puzzled about the "and gateways" part.  Is it correct?
> 
> Yes. A proper gateway to X.400, for example, will turn a top-level DSN into an
> X.400 delivery report and vice versa. (It would nice if the same applied to
> MDNs and X.400 read receipts, but the semantics are so dissimilar that
> conversion is infeasible.)

I'm not familiar with X.400, but this turns out to be a clarifying
element.  Top-level reports may be converted.  In pseudo-code

  if (/^Content-Type: *multipart\/report.*report-type=([:value:]+)/ih)
  // assume h stands for header only, and :value: catches token or
  // quoted-string appropriately
  {
    switch ($1)
    {
      case "delivery-status":
      // convert
      // ...
    }
  }

The task of preserving gateway functionality allows to define the
behavior without shredding much more light on the semantics of
"top-level" vs. "wrapped".

>>> Question: in case an ARF processor forwards an abuse (mis)report to
>>> the original author, is it correct to keep multipart/report as the top
>>> Content-Type?

I'm sorry I badly expressed this point.  Consider that the original
author probably has a copy of the reported message in her "Sent"
folder.  In this particular case, an agent could do some meaningful
work with reports.  Would it make sense to send the report as
"active", so as to trigger any agent that may process it?

jm2c