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

valdis.kletnieks@vt.edu Fri, 15 February 2019 04:45 UTC

Return-Path: <valdis.kletnieks@vt.edu>
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 6645E129A85 for <ietf-822@ietfa.amsl.com>; Thu, 14 Feb 2019 20:45:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.201
X-Spam-Level:
X-Spam-Status: No, score=-4.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-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 Bq_5Ae3rg2nE for <ietf-822@ietfa.amsl.com>; Thu, 14 Feb 2019 20:45:29 -0800 (PST)
Received: from omr2.cc.vt.edu (omr2.cc.ipv6.vt.edu [IPv6:2607:b400:92:8400:0:33:fb76:806e]) (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 E8CC91277D2 for <ietf-822@ietf.org>; Thu, 14 Feb 2019 20:45:28 -0800 (PST)
Received: from mr4.cc.vt.edu (mr4.cc.ipv6.vt.edu [IPv6:2607:b400:92:8300:0:7b:e2b1:6a29]) by omr2.cc.vt.edu (8.14.4/8.14.4) with ESMTP id x1F4jRsA004609 for <ietf-822@ietf.org>; Thu, 14 Feb 2019 23:45:27 -0500
Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mr4.cc.vt.edu (8.14.7/8.14.7) with ESMTP id x1F4jMJR019003 for <ietf-822@ietf.org>; Thu, 14 Feb 2019 23:45:27 -0500
Received: by mail-qk1-f198.google.com with SMTP id b6so7212989qkg.4 for <ietf-822@ietf.org>; Thu, 14 Feb 2019 20:45:27 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:mime-version:date:message-id; bh=AOJocCNX6G9WqlK9xV9ddnCmGxWMAAKfgIErFguQwEw=; b=sv9ULbhymdctZ1A+Q0crw2ksWjzEwTvLeOtzwnCVf7PGhtMbjHl6MpC7I99uRLfoDy Zt3OBIB+Inns7Bj5lhGq17y8Uw/no5zKINUHBx1xTHuycYshJ932rNEtWT7uBmbQxkRB C7bMb5OFyn6kPnaLL9FbfJo5al10dS0XzhUXjgQYHFW6a3B/mZwVNTP4OmkTLG1rEbTj ueH80Xu4e1FLFuGmE6y/8e+A2O8XYdOvs72X4qfruXJdiSOHM/7YqsP0JtxjZwoxwD3K LE2kZgCXpLM8/mRBjY0DqA/wc0mrASS9Ii/ugxPmp25QaS53c2gnCteXTmVinIVmurx8 u9mA==
X-Gm-Message-State: AHQUAuYYkXfdRyq2RHv/UwIHxUNJbbNpq5VmcShnYsX7NnebPa149bpP d9rrQEuLKPKF7ykHrFpW+tYy9SIlvjxtcW4YcluxYu10ek3EVDebd6ksmCUf6IZwVbquyhZI4El O3mJx8SkJ5zPCBmhuqZ2VlxKZQtB1s1x5x5uSoLgiM9xGmE8cgmSK5sm6LWtxCwN+5SboPaMMJT HpyQ==
X-Received: by 2002:ac8:2bbc:: with SMTP id m57mr5989531qtm.303.1550205922142; Thu, 14 Feb 2019 20:45:22 -0800 (PST)
X-Google-Smtp-Source: AHgI3IZivSQi1k1N0768bILuhT5u+/EewTE2PrcYHgP6phsAcNRbpJ49p5mDj4/h00W5WhjUb74tUw==
X-Received: by 2002:ac8:2bbc:: with SMTP id m57mr5989518qtm.303.1550205921937; Thu, 14 Feb 2019 20:45:21 -0800 (PST)
Received: from turing-police.cc.vt.edu ([2601:5c0:c001:4341:5952:f06b:5958:9b7c]) by smtp.gmail.com with ESMTPSA id p18sm2155481qkl.48.2019.02.14.20.45.20 for <ietf-822@ietf.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Feb 2019 20:45:20 -0800 (PST)
X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev
From: valdis.kletnieks@vt.edu
To: ietf-822@ietf.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 14 Feb 2019 23:45:19 -0500
Message-ID: <12105.1550205919@turing-police.cc.vt.edu>
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-822/UTQkOH53f1W5Zhu2T2EGK5CbsjQ>
Subject: [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 04:45:31 -0000

(Not sure if this list is still active, trying anyhow...)

So I'm updating my "List of things that the exmh MUA gets wrong", and I
have this in an item in the folder I use as a rogue's gallery of test cases...

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?

(I have to fix it in exmh whether this case is legal or not - its decoder
for UTF-8 in headers in general gets the length wrong and occasionally sticks 2
extra corrupt bytes onto the end of the decoded string)