Re: [Extra] Email header / address parsing

Arnt Gulbrandsen <arnt@gulbrandsen.priv.no> Wed, 02 September 2020 09:04 UTC

Return-Path: <arnt@gulbrandsen.priv.no>
X-Original-To: extra@ietfa.amsl.com
Delivered-To: extra@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D45033A0F04 for <extra@ietfa.amsl.com>; Wed, 2 Sep 2020 02:04:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=gulbrandsen.priv.no
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 bx492d7VsMPn for <extra@ietfa.amsl.com>; Wed, 2 Sep 2020 02:04:53 -0700 (PDT)
Received: from stabil.gulbrandsen.priv.no (stabil.gulbrandsen.priv.no [IPv6:2a01:4f8:191:91a8::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E29F63A0F0A for <extra@ietf.org>; Wed, 2 Sep 2020 02:04:34 -0700 (PDT)
Received: from stabil.gulbrandsen.priv.no (stabil.gulbrandsen.priv.no [IPv6:2a01:4f8:191:91a8::3]) by stabil.gulbrandsen.priv.no (Postfix) with ESMTP id 3735BC010A; Wed, 2 Sep 2020 10:10:31 +0100 (IST)
Authentication-Results: stabil.gulbrandsen.priv.no; dmarc=none (p=none dis=none) header.from=gulbrandsen.priv.no
Authentication-Results: stabil.gulbrandsen.priv.no; spf=none smtp.mailfrom=arnt@gulbrandsen.priv.no
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gulbrandsen.priv.no; s=mail; t=1599037831; bh=RKnzN6eiD3xxIYU8ZtyIza8yAvd+WFE5OCiy1s5miCE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NTXyw4yLW5i1hsSRLYk+EHFoWe/LxT7fgSavx2PEHl0HHnV3S7riyafJIXMO9RH5t IOLTPVa+hdsiBd/eAUGSGrVDGjfad9Dc4uKQUAwajTsscW8HjUxFBL8tkUHzexgqG2 OLI63+RzTX15aniKNDR6MmwiZ+f5Rw9bQfxYKSrI=
Received: from arnt@gulbrandsen.priv.no by stabil.gulbrandsen.priv.no (Archiveopteryx 3.2.0) with esmtpsa id 1599037830-19142-19140/9/55; Wed, 2 Sep 2020 09:10:30 +0000
From: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
To: Timo Sirainen <timo@sirainen.com>
Cc: John R Levine <johnl@taugh.com>, extra@ietf.org
Date: Wed, 02 Sep 2020 11:04:30 +0200
Mime-Version: 1.0
Message-Id: <e23f8202-8e0d-4335-b210-85f1bb21cc0e@gulbrandsen.priv.no>
In-Reply-To: <CD54ECDD-5B0E-4ADF-B799-4FB0DF2F43BC@sirainen.com>
References: <20200901174151.C75881F59628@ary.qy> <8A38854C-8914-4200-8EB3-4BFA5B03B5E0@sirainen.com> <1d266c79-1f46-3b66-1598-c0413af9779@taugh.com> <CD54ECDD-5B0E-4ADF-B799-4FB0DF2F43BC@sirainen.com>
User-Agent: Trojita/0.7; Qt/5.11.3; xcb; Linux; Devuan GNU/Linux 3 (beowulf)
Content-Type: text/plain; charset="utf-8"; format="flowed"
Archived-At: <https://mailarchive.ietf.org/arch/msg/extra/9NKRA-hdEWNptSpd0yHeJ_PBuPk>
Subject: Re: [Extra] Email header / address parsing
X-BeenThere: extra@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Email mailstore and eXtensions To Revise or Amend <extra.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/extra>, <mailto:extra-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/extra/>
List-Post: <mailto:extra@ietf.org>
List-Help: <mailto:extra-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/extra>, <mailto:extra-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 02 Sep 2020 09:04:55 -0000

We've discussed this sort of this before, and I don't see what's different 
this time. If the server can parse it well enough to present the correct 
domain with ".invalid" appended, why not present the domain without 
.invalid? If the server cannot parse it that well, why even try to include 
that address in the list?

IMO, the best way to handle this is to say: "If a header contains syntax 
errors, whether major or minor, the server MAY present a best-effort 
ENVELOPE or BODY. This response may be be either incomplete (the server 
drops the addresses that could not be parsed and presents as many as it can 
of the others) or unreliable (if an address is invalid, there may not be a 
single obvious way to render it valid)."

This is not a compatibility break, doesn't add new requirements, does 
suggest a way to handle some syntax errors, and it doesn't expose clients 
to new expectations: Four out of four, say I.

Arnt