Re: [apps-discuss] Review of: draft-ietf-appsawg-malformed-mail-03

"John Levine" <johnl@taugh.com> Mon, 13 May 2013 15:40 UTC

Return-Path: <johnl@iecc.com>
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 7D06721F939E for <apps-discuss@ietfa.amsl.com>; Mon, 13 May 2013 08:40:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -109.34
X-Spam-Level:
X-Spam-Status: No, score=-109.34 tagged_above=-999 required=5 tests=[BAYES_20=-0.74, HABEAS_ACCREDITED_SOI=-4.3, RCVD_IN_BSP_TRUSTED=-4.3, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gKjGVCNT-cEo for <apps-discuss@ietfa.amsl.com>; Mon, 13 May 2013 08:40:01 -0700 (PDT)
Received: from leila.iecc.com (leila6.iecc.com [IPv6:2001:470:1f07:1126:0:4c:6569:6c61]) by ietfa.amsl.com (Postfix) with ESMTP id 25B7C21F93DE for <apps-discuss@ietf.org>; Mon, 13 May 2013 08:40:00 -0700 (PDT)
Received: (qmail 39181 invoked from network); 13 May 2013 15:39:54 -0000
Received: from leila.iecc.com (64.57.183.34) by mail1.iecc.com with QMQP; 13 May 2013 15:39:54 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:cc:subject:in-reply-to:mime-version:content-type:content-transfer-encoding; s=5191094a.xn--i8sz2z.k1305; i=johnl@user.iecc.com; bh=lvteO7bxVGH2Sf++M35oI+c6Px2OPZQjqHWh4jllrH4=; b=YdpZ+5zDS56/Vlli6BzMvmiXZ6SPKKojldkH5gASEEX+t/Vm3Jhyf9waLj6nbjcgP6KbmCsK6PQ/W1E8FiVfbXPEnxc1chlI+0Jw3J8qRQvY24AXiSYqm6q49vbcyRotQsMIShNaJlYW/BuxAx9elz6x/3UnZp9rt6E/r3Vyb28=
DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=taugh.com; h=date:message-id:from:to:cc:subject:in-reply-to:mime-version:content-type:content-transfer-encoding; s=5191094a.xn--i8sz2z.k1305; olt=johnl@user.iecc.com; bh=lvteO7bxVGH2Sf++M35oI+c6Px2OPZQjqHWh4jllrH4=; b=rrC63k5o9WebgGFZm190aVwZZZicQ9k71Eu9+cFwzMOfnCz/T4FYAwIioWg1JhYAzE6ExQWoklSgeyBXfxCxSMXB7fwunOfXECdGVKIWBq19rUtx1RO2DYcu4EBy0nMZUyK78JTEDe4qCgCKjopvgQ1V3zjetq2rkqXzKdxj2GI=
Date: Mon, 13 May 2013 15:39:32 -0000
Message-ID: <20130513153932.91355.qmail@joyce.lan>
From: John Levine <johnl@taugh.com>
To: apps-discuss@ietf.org
In-Reply-To: <CAL0qLwaBPhyPEKHPwRurqoCnNy2_tp6rCHe7YzvPonvfN_ALHQ@mail.gmail.com>
Organization:
X-Headerized: yes
Mime-Version: 1.0
Content-type: text/plain; charset="utf-8"
Content-transfer-encoding: 8bit
Subject: Re: [apps-discuss] Review of: draft-ietf-appsawg-malformed-mail-03
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: Mon, 13 May 2013 15:40:05 -0000

>Eight bit data is far from something I'm expert on.  Could I ask you to
>write up a paragraph or three to include here, or replace what's here?

These days, eight bit data in the message body is most likely just
text.  The tricky bit is figuring out what the encoding is.  In my
mail, the eight-bit characters I see most often are angled single and
double quotes and other punctuation, typically in text that has been
pasted in from a web browser or word processor.  I also see accented
characters, either in people's names or just to add élan.  I gather
that simple heuristics that check 8bit characters against various
encodings of stuff likely to appear in text work pretty well, at least
in mailstreams that are primarily in roman alphabet languages.

In headers, you will see unencoded UTF-8 in mail that leaks from EAI
mailstreams into normal mail.  It is my impression that it is rare to
see unencoded 8bit characters in any other encoding in headers.

In both cases, it's much more likely to be a mistake than an attack.

In 8.6, is it really a good idea to add missing date headers in an
MTA?  My impression is that most mail that makes it to your MTA
without a date header isn't mail you want to read.


R's,
John