Re: [ietf-822] Mail headers on crack....

Tony Finch <dot@dotat.at> Fri, 15 February 2019 12:10 UTC

Return-Path: <dot@dotat.at>
X-Original-To: ietf-822@ietfa.amsl.com
Delivered-To: ietf-822@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 27733130DC9 for <ietf-822@ietfa.amsl.com>; Fri, 15 Feb 2019 04:10:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.199
X-Spam-Level:
X-Spam-Status: No, score=-4.199 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, 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 OGj78tGLeoh4 for <ietf-822@ietfa.amsl.com>; Fri, 15 Feb 2019 04:10:36 -0800 (PST)
Received: from ppsw-31.csi.cam.ac.uk (ppsw-31.csi.cam.ac.uk [131.111.8.131]) (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 366B9124408 for <ietf-822@ietf.org>; Fri, 15 Feb 2019 04:10:36 -0800 (PST)
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://help.uis.cam.ac.uk/email-scanner-virus
Received: from grey.csi.cam.ac.uk ([131.111.57.57]:39584) by ppsw-31.csi.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.137]:25) with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1gucK9-000uPr-MM (Exim 4.91) (return-path <dot@dotat.at>); Fri, 15 Feb 2019 12:10:33 +0000
Date: Fri, 15 Feb 2019 12:10:33 +0000
From: Tony Finch <dot@dotat.at>
To: valdis.kletnieks@vt.edu
cc: ietf-822@ietf.org
In-Reply-To: <12105.1550205919@turing-police.cc.vt.edu>
Message-ID: <alpine.DEB.2.20.1902151206000.18720@grey.csi.cam.ac.uk>
References: <12105.1550205919@turing-police.cc.vt.edu>
User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-822/JsWyFHDWlzClB7_r3K5Vd8hn5bc>
Subject: Re: [ietf-822] Mail headers on crack....
X-BeenThere: ietf-822@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Discussion of issues related to Internet Message Format \[RFC 822, RFC 2822, RFC 5322\]" <ietf-822.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf-822>, <mailto:ietf-822-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf-822/>
List-Post: <mailto:ietf-822@ietf.org>
List-Help: <mailto:ietf-822-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf-822>, <mailto:ietf-822-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 15 Feb 2019 12:10:38 -0000

valdis.kletnieks@vt.edu <valdis.kletnieks@vt.edu> wrote:
>
> 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?=
>
> Ugly as it is, I can't find where in the RFCs it says this is a no-no. Or
> is this actually wonky-but-legal?

Invalid, because ...

RFC 2047 section 5:

(1) An 'encoded-word' may replace a 'text' token (as defined by RFC 822)
    in any Subject or Comments header field, any extension message
    header field, or any MIME body part field for which the field body
    is defined as '*text'.  An 'encoded-word' may also appear in any
    user-defined ("X-") message or body part header field.

RFC 2045 section 4:

     version := "MIME-Version" ":" 1*DIGIT "." 1*DIGIT

RFC 2045 section 6.1:

     encoding := "Content-Transfer-Encoding" ":" mechanism

     mechanism := "7bit" / "8bit" / "binary" /
                  "quoted-printable" / "base64" /
                  ietf-token / x-token

RFC 2045 section 5.1:

     content := "Content-Type" ":" type "/" subtype
                *(";" parameter)
                ; Matching of media type and subtype
                ; is ALWAYS case-insensitive.

RFC 2183 section 2:

     disposition := "Content-Disposition" ":"
                    disposition-type
                    *(";" disposition-parm)

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
Great Orme Head to the Mull of Galloway: South or southeast 5 or 6, veering
south or southwest 6 or 7, decreasing 4 or 5 later. Moderate, occasionally
rough. Occasional drizzle. Moderate or good, occasionally poor.