Re: [ietf-smtp] Is this a valid Message-ID header ?

Mark Andrews <marka@isc.org> Fri, 06 March 2020 03:36 UTC

Return-Path: <marka@isc.org>
X-Original-To: ietf-smtp@ietfa.amsl.com
Delivered-To: ietf-smtp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8C1863A122F for <ietf-smtp@ietfa.amsl.com>; Thu, 5 Mar 2020 19:36:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=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 PjCggeV6qfZ3 for <ietf-smtp@ietfa.amsl.com>; Thu, 5 Mar 2020 19:36:25 -0800 (PST)
Received: from mx.pao1.isc.org (mx.pao1.isc.org [149.20.64.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1C77C3A11E3 for <ietf-smtp@ietf.org>; Thu, 5 Mar 2020 19:36:25 -0800 (PST)
Received: from zmx1.isc.org (zmx1.isc.org [149.20.0.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.pao1.isc.org (Postfix) with ESMTPS id D0CE43AB00A; Fri, 6 Mar 2020 03:36:24 +0000 (UTC)
Received: from zmx1.isc.org (localhost [127.0.0.1]) by zmx1.isc.org (Postfix) with ESMTPS id 788D516006C; Fri, 6 Mar 2020 03:36:24 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1]) by zmx1.isc.org (Postfix) with ESMTP id 48CB5160066; Fri, 6 Mar 2020 03:36:24 +0000 (UTC)
Received: from zmx1.isc.org ([127.0.0.1]) by localhost (zmx1.isc.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id n_G9wX6eN-eO; Fri, 6 Mar 2020 03:36:24 +0000 (UTC)
Received: from [172.30.42.69] (unknown [49.2.105.120]) by zmx1.isc.org (Postfix) with ESMTPSA id 64BF1160048; Fri, 6 Mar 2020 03:36:23 +0000 (UTC)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
From: Mark Andrews <marka@isc.org>
In-Reply-To: <87055.1583465260@turing-police>
Date: Fri, 6 Mar 2020 14:36:18 +1100
Cc: John Levine <johnl@taugh.com>, ietf-smtp@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <9DF11014-4C79-49DE-B17E-12B87F2FF17C@isc.org>
References: <20200305043414.0E7C515740C2@ary.qy> <87055.1583465260@turing-police>
To: =?utf-8?Q?Valdis_Kl=C4=93tnieks?= <valdis.kletnieks@vt.edu>
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-smtp/v3qwIZJFzHgEq3UhAaP8HxP3WHA>
Subject: Re: [ietf-smtp] Is this a valid Message-ID header ?
X-BeenThere: ietf-smtp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Discussion of issues related to Simple Mail Transfer Protocol \(SMTP\) \[RFC 821, RFC 2821, RFC 5321\]" <ietf-smtp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf-smtp>, <mailto:ietf-smtp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf-smtp/>
List-Post: <mailto:ietf-smtp@ietf.org>
List-Help: <mailto:ietf-smtp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf-smtp>, <mailto:ietf-smtp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 06 Mar 2020 03:36:27 -0000

Conversion of all ASCII headers to utf-8 mime encoded should be banned. Apart
from testing encoding/decoding it serves no useful purpose and if you want
to perform such testing you can always add a non ASCII character.  MUA’s that
do this are deliberately breaking interoperability with old MUAs.

Mark

> On 6 Mar 2020, at 14:27, Valdis Klētnieks <valdis.kletnieks@vt.edu> wrote:
> 
> On 04 Mar 2020 23:34:13 -0500, "John Levine" said:
>> I read IETF mailing lists on the IETF's IMAP server* and of late I've been
>> seeing some awfully funky stuff.
>> 
>> This is an actual Message-ID header in one of the messages in dnsop.
>> Is that valid?  Even though the MIME decodes to a an ASCII message ID
>> in the <string@domain> format, I think the answer is no.  That's not
>> what RFC 5322 sec 3.6 allows.
> 
> I'll see your Message-ID, and raise you a... not even sure *what* to call it. :)
> 
>> From my collection of emails that give exmh indigestion:
> 
> % grep UTF-8 183
> From: =?UTF-8?B?dGlwLWJvdCBmb3IgRGF2aWQgQnJvd24gPHRpcGJvdEB6eXRvci5jb20+?=@zytor.com
> To: =?UTF-8?B?bGludXgtdGlwLWNvbW1pdHNAdmdlci5rZXJuZWwub3Jn?=@zytor.com
> Subject: =?UTF-8?B?W3RpcDptbS9yZWFkb25seV0gQVJNL3Zkc286IE1hcmsgdGhlIHZEU08gY29kZSA=?=  =?UTF-8?B?cmVhZC1vbmx5IGFmdGVyIGluaXQ=?=
> Git-Commit-ID: =?UTF-8?B?MTFiZjliODY1ODk4OTYxY2VlNjBhNDFjNDgzYzlmMjdlYzc2ZTEyZQ==?=
> X-Mailer: =?UTF-8?B?dGlwLWdpdC1sb2ctZGFlbW9u?=
> Robot-ID: =?UTF-8?B?PHRpcC1ib3QuZ2l0Lmtlcm5lbC5vcmc+?=
> Robot-Unsubscribe: =?UTF-8?B?Q29udGFjdCA8bWFpbHRvOmhwYUBrZXJuZWwub3JnPiB0byBnZXQgYmxhY2tsaXM=?=  =?UTF-8?B?dGVkIGZyb20gdGhlc2UgZW1haWxz?=
> MIME-Version: =?UTF-8?B?MS4w?=
> Content-Transfer-Encoding: =?UTF-8?B?OGJpdA==?=
> Content-Type: =?UTF-8?B?dGV4dC9wbGFpbjsgY2hhcnNldD1VVEYtOA==?=
> Content-Disposition: =?UTF-8?B?aW5saW5l?=
> 
> Amazingly enough, this managed to collect 10 Received: headers, land in my
> mailbox, and exmh *mostly* figured it out:
> 
> From: tip-bot for David Brown <tipbot@zytor.com>@zytor.com
> To: linux-tip-commits@vger.kernel.org@zytor.com
> Subject: [tip:mm/readonly] ARM/vdso: Mark the vDSO code   read-only after init
> Git-commit-id: 11bf9b865898961cee60a41c483c9f27ec76e12e
> X-mailer: tip-git-log-daemon
> Robot-id: <tip-bot.git.kernel.org>
> Robot-unsubscribe: Contact <mailto:hpa@kernel.org> to get blacklis  ted from these emails
> Mime-version: 1.0
> Content-transfer-encoding: 8bit
> Content-type: text/plain; charset=UTF-8
> Content-disposition: inline
> 
> But then finally gave up because it tried to use the undecoded content-type,
> gave up, and tossed up a "save/print/don't decode MIME" dialog.
> 
> And yes, tip-bot got fixed quite quickly thereafter... :)
> _______________________________________________
> ietf-smtp mailing list
> ietf-smtp@ietf.org
> https://www.ietf.org/mailman/listinfo/ietf-smtp

-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742              INTERNET: marka@isc.org