[openpgp] Tag indicating a MIME content

Werner Koch <wk@gnupg.org> Thu, 07 July 2016 08:17 UTC

Return-Path: <wk@gnupg.org>
X-Original-To: openpgp@ietfa.amsl.com
Delivered-To: openpgp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8B76012D115 for <openpgp@ietfa.amsl.com>; Thu, 7 Jul 2016 01:17:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.9
X-Spam-Level:
X-Spam-Status: No, score=-6.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5] 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 eyoOCAzIXS4v for <openpgp@ietfa.amsl.com>; Thu, 7 Jul 2016 01:17:04 -0700 (PDT)
Received: from kerckhoffs.g10code.com (kerckhoffs.g10code.com [IPv6:2001:aa8:fff1:100::22]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AB50F12B044 for <openpgp@ietf.org>; Thu, 7 Jul 2016 01:17:03 -0700 (PDT)
Received: from uucp by kerckhoffs.g10code.com with local-rmail (Exim 4.80 #2 (Debian)) id 1bL4UX-0005kk-RF for <openpgp@ietf.org>; Thu, 07 Jul 2016 10:17:01 +0200
Received: from wk by wheatstone.g10code.de with local (Exim 4.84 #3 (Debian)) id 1bL4Rt-0001jN-He for <openpgp@ietf.org>; Thu, 07 Jul 2016 10:14:17 +0200
From: Werner Koch <wk@gnupg.org>
To: openpgp@ietf.org
Organisation: g10 Code GmbH
X-message-flag: Mails containing HTML will not be read! Please send only plain text.
OpenPGP: url=https://k.gnupg.net/80615870F5BAD690333686D0F2AD85AC1E42B367
Mail-Followup-To: openpgp@ietf.org
Date: Thu, 07 Jul 2016 10:14:17 +0200
Message-ID: <87r3b5q2zq.fsf@wheatstone.g10code.de>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/s2rmsw97lYgcM4AivmbDZsjfZJs>
Subject: [openpgp] Tag indicating a MIME content
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Jul 2016 08:17:05 -0000

Hi,

I recall that an indication for a MIME content has been proposed many
years ago but might have been forgotten.  Thus I propose this small
change for 4880bis:

--8<---------------cut here---------------start------------->8---
diff --git a/middle.mkd b/middle.mkd
index 033f11f..5519be3 100644
--- a/middle.mkd
+++ b/middle.mkd
@@ -2156,7 +2156,8 @@ ## {5.9} Literal Data Packet (Tag 11)
     may need line ends converted to local form, or other text-mode
     changes.  The tag 'u' (0x75) means the same as 't', but also
     indicates that implementation believes that the literal data
-    contains UTF-8 text.
+    contains UTF-8 text.  If it is a 'm' (0x6d), then it contains a
+    MIME message body part [](#RFC2045).
 
     Early versions of PGP also defined a value of 'l' as a 'local'
     mode for machine-local conversions.  RFC 1991 [](#RFC1991)
--8<---------------cut here---------------end--------------->8---


MIME has several advantages: Interpretation of the plaintext can be done
without considering the context (e.g. part of a PGP/MIME message or
standalone).  The encoding of the message can be described without
resorting to the unprotected armor header.


Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
 /* Join us at OpenPGP.conf  <https://openpgp-conf.org> */