Re: [ietf-822] utf8 messages

Mark Martinec <Mark.Martinec+ietf@ijs.si> Tue, 12 August 2014 10:27 UTC

Return-Path: <Mark.Martinec+ietf@ijs.si>
X-Original-To: ietf-822@ietfa.amsl.com
Delivered-To: ietf-822@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 99FC91A0836 for <ietf-822@ietfa.amsl.com>; Tue, 12 Aug 2014 03:27:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.771
X-Spam-Level:
X-Spam-Status: No, score=-2.771 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, GB_I_LETTER=-2, RP_MATCHES_RCVD=-0.668, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham
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 Y9-KGFWDmj45 for <ietf-822@ietfa.amsl.com>; Tue, 12 Aug 2014 03:27:42 -0700 (PDT)
Received: from mail.ijs.si (mail.ijs.si [IPv6:2001:1470:ff80::25]) by ietfa.amsl.com (Postfix) with ESMTP id E1A171A03A9 for <ietf-822@ietf.org>; Tue, 12 Aug 2014 03:27:40 -0700 (PDT)
Received: from amavis-proxy-ori.ijs.si (localhost [IPv6:::1]) by mail.ijs.si (Postfix) with ESMTP id 3hXVbv5gDCz1Ww for <ietf-822@ietf.org>; Tue, 12 Aug 2014 12:27:39 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ijs.si; h= user-agent:message-id:references:in-reply-to:organization :subject:subject:from:from:date:date:content-transfer-encoding :content-type:content-type:mime-version:received:received :received:received; s=jakla2; t=1407839254; x=1410431255; bh=bC1 k1xLE/Xh8Al/U8W/DSLKnu8twXy42yofuvl6dfa4=; b=T4GS4NZA0h9RQmVBgRv lAHMdCoTWonbduXUXCcjY12s9MPRBdP3P2CpvRvRCoNmryylLO6qW8RA8ZhYvz1s ePYd7ZmUgkVSt9ZDn6tWZtNtl09d+l3k4hEDuQk8T4z9X0i+oYUtRhrjBAmNyLoO sGo+JIAvPzZTKtXnn0ivETas=
X-Virus-Scanned: amavisd-new at ijs.si
Received: from mail.ijs.si ([IPv6:::1]) by amavis-proxy-ori.ijs.si (mail.ijs.si [IPv6:::1]) (amavisd-new, port 10012) with ESMTP id Y6ofIng3P4SM for <ietf-822@ietf.org>; Tue, 12 Aug 2014 12:27:34 +0200 (CEST)
Received: from mildred.ijs.si (mailbox.ijs.si [IPv6:2001:1470:ff80::143:1]) by mail.ijs.si (Postfix) with ESMTP for <ietf-822@ietf.org>; Tue, 12 Aug 2014 12:27:34 +0200 (CEST)
Received: from neli.ijs.si (neli.ijs.si [IPv6:2001:1470:ff80:88:21c:c0ff:feb1:8c91]) by mildred.ijs.si (Postfix) with ESMTP id 3hXVbp0ZLyz1Bj for <ietf-822@ietf.org>; Tue, 12 Aug 2014 12:27:34 +0200 (CEST)
Received: from sleepy.ijs.si ([2001:1470:ff80:e001::1:1]) by neli.ijs.si with HTTP (HTTP/1.1 POST); Tue, 12 Aug 2014 12:27:34 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"; format="flowed"
Content-Transfer-Encoding: 7bit
Date: Tue, 12 Aug 2014 12:27:34 +0200
From: Mark Martinec <Mark.Martinec+ietf@ijs.si>
To: ietf-822@ietf.org
Organization: Jozef Stefan Institute
In-Reply-To: <CABa8R6tns-idiZTj=+vb9fVNyH-nNYT+w9oNMb80XbCs5osvFw@mail.gmail.com>
References: <CABa8R6tWEhjjZSvq6NbM7EimokOms3suZufn0-6N1SB_fzGM8Q@mail.gmail.com> <01PB9FABWA4E0000SM@mauve.mrochek.com> <CABa8R6tns-idiZTj=+vb9fVNyH-nNYT+w9oNMb80XbCs5osvFw@mail.gmail.com>
Message-ID: <1053eaad3ecaa753e86f09ab251c032a@mailbox.ijs.si>
X-Sender: Mark.Martinec+ietf@ijs.si
User-Agent: Roundcube Webmail/1.0.2
Archived-At: http://mailarchive.ietf.org/arch/msg/ietf-822/PuZ5EuKxqmjB4sYbrvg4g5IR8dw
Subject: Re: [ietf-822] utf8 messages
X-BeenThere: ietf-822@ietf.org
X-Mailman-Version: 2.1.15
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: <http://www.ietf.org/mail-archive/web/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: Tue, 12 Aug 2014 10:27:46 -0000

2014-08-12 10:20, Brandon Long wrote:
> So, if I have an "email" message, I can no longer just parse it.
> Instead, there are actually two
> types of email messages, and the only way to know how to parse it
> is to know a priori which type it is.
> Because all systems are "sealed" and there's never any leakage.
> [...]
> Yes.  And the most obvious place for that information, to me, is in the
> headers of the message.  Assuming that every mechanism for exchanging 
> email
> messages needs an explicit external piece of data...

Actually the presence of an SMTPUTF8 flag *is* reflected in the
header section of a message. It's in the WITH subfield of a
(likely topmost) Received header field (RFC 6531), as inserted
by your MX or MSA:

   UTF8SMTP	ESMTP with SMTPUTF8
   UTF8SMTPA	ESMTP with SMTPUTF8 and AUTH
   UTF8SMTPS	ESMTP with SMTPUTF8 and STARTTLS
   UTF8SMTPSA	ESMTP with SMTPUTF8 and both STARTTLS and AUTH
   UTF8LMTP	LMTP with SMTPUTF8
   UTF8LMTPA	LMTP with SMTPUTF8 and AUTH
   UTF8LMTPS	LMTP with SMTPUTF8 and STARTTLS
   UTF8LMTPSA	LMTP with SMTPUTF8 and both STARTTLS and AUTH

http://www.iana.org/assignments/mail-parameters/mail-parameters.xhtml#mail-parameters-7

(and equivalently for LMTP)

> Is there a separate three letter filename extension for 6532 messages,
> for example? (for platforms which use such things).

RFC 6532:
   message/global -> .u8msg

RFC 6533:
   message/global-headers -> .u8hdr
   message/global-delivery-status -> .u8dsn
   message/global-disposition-notification -> .u8mdn


Mark