Structured Email P. Tao Internet-Draft Apple Inc. Intended status: Standards Track A. Gulbrandsen Expires: 5 May 2027 ICANN B. Bucksch Beonex 1 November 2026 Structured Quoted Content draft-ietf-sml-structured-quoted-content-01 Abstract This document describes a machine-readable format for conveying quoted content in email messages. This can be used when replying to or forwarding an email message. Structured quoted content is expected to be used in conjunction with conventional, human-readable quote formatting. They are based on the forthcoming "structured email" specification defined in [I-D.ietf- sml-structured-email-03] and related drafts. About This Document This note is to be removed before publishing as an RFC. The latest revision of this draft can be found at https://ptao.github.io/id-structured-quoted-content/draft-tao-sml- structured-quoted-content.html. Status information for this document may be found at https://datatracker.ietf.org/doc/draft-ietf-sml- structured-quoted-content/. Discussion of this document takes place on the Structured Email Working Group mailing list (mailto:sml@ietf.org), which is archived at https://mailarchive.ietf.org/arch/browse/sml/. Subscribe at https://www.ietf.org/mailman/listinfo/sml/. Source for this draft and an issue tracker can be found at https://github.com/ptao/id-structured-quoted-content. Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Tao, et al. Expires 5 May 2027 [Page 1] Internet-Draft Structured Quoted Content November 2026 Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at https://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on 5 May 2027. Copyright Notice Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/ license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3 2. Conventions and Definitions . . . . . . . . . . . . . . . . . 4 3. Overview . . . . . . . . . . . . . . . . . . . . . . . . . . 4 4. Structured Email Format . . . . . . . . . . . . . . . . . . . 5 4.1. Structured Data Type . . . . . . . . . . . . . . . . . . 5 4.2. Vocabularies . . . . . . . . . . . . . . . . . . . . . . 5 5. JSON-LD Objects . . . . . . . . . . . . . . . . . . . . . . . 5 5.1. Common Properties . . . . . . . . . . . . . . . . . . . . 6 5.2. EmailMessage . . . . . . . . . . . . . . . . . . . . . . 6 5.2.1. Value Types . . . . . . . . . . . . . . . . . . . . . 7 5.2.2. Properties . . . . . . . . . . . . . . . . . . . . . 7 5.2.3. Other Properties . . . . . . . . . . . . . . . . . . 9 5.3. QuotedContent . . . . . . . . . . . . . . . . . . . . . . 9 5.4. QuotedHeaderBlock . . . . . . . . . . . . . . . . . . . . 10 5.5. QuotedHeader . . . . . . . . . . . . . . . . . . . . . . 10 5.6. QuoteAttribution . . . . . . . . . . . . . . . . . . . . 11 5.7. TextContent . . . . . . . . . . . . . . . . . . . . . . . 11 5.8. ForwardPreamble . . . . . . . . . . . . . . . . . . . . . 12 6. HTML Format . . . . . . . . . . . . . . . . . . . . . . . . . 12 7. MUA Guidance . . . . . . . . . . . . . . . . . . . . . . . . 12 Tao, et al. Expires 5 May 2027 [Page 2] Internet-Draft Structured Quoted Content November 2026 8. Backwards Compatibility . . . . . . . . . . . . . . . . . . . 13 8.1. Quoting a Message Without Structured Quoted Content . . . 13 8.2. Quoting a Message With Structured Quoted Content, Without Support . . . . . . . . . . . . . . . . . . . . . . . . . 14 8.3. Effect on Later Messages . . . . . . . . . . . . . . . . 14 9. Examples . . . . . . . . . . . . . . . . . . . . . . . . . . 14 9.1. Example 1: Forward Containing a Nested Quote . . . . . . 15 9.1.1. HTML Part . . . . . . . . . . . . . . . . . . . . . . 15 9.1.2. JSON-LD Part . . . . . . . . . . . . . . . . . . . . 16 9.2. Example 2: Reply with Inline Comment . . . . . . . . . . 20 9.2.1. HTML Part . . . . . . . . . . . . . . . . . . . . . . 20 9.2.2. JSON-LD Part . . . . . . . . . . . . . . . . . . . . 21 9.3. Example 3: Quote Chain including Non-Adopter . . . . . . 25 9.3.1. HTML Part . . . . . . . . . . . . . . . . . . . . . . 25 9.3.2. JSON-LD Part . . . . . . . . . . . . . . . . . . . . 26 10. Security Considerations . . . . . . . . . . . . . . . . . . . 30 11. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 30 12. Normative References . . . . . . . . . . . . . . . . . . . . 30 Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . 31 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 31 1. Introduction Email messages often content quoted sections of earlier email messages, typically as part of a reply or a forwarded message. The presentation is entirely determined by the sending MUA. Though various conventions have evolved around this quoting, the behavior is still largely unstandardized, and behavior differs widely between MUAs. Some notable differences include: * Where newly authored content may be inserted relative to the quoted content. - Some MUAs allow inserting new content only above the quoted message, while some allow inserting new content inline between blocks of quoted text. * The formatting used to denote the quoted section. * Whether some set of headers are also quoted, or whether an attribution line or preamble is inserted. - Whether the headers, attribution line, or preamble are localized into the sender's device language. Tao, et al. Expires 5 May 2027 [Page 3] Internet-Draft Structured Quoted Content November 2026 Due to the above, an email chain in a user's inbox may involve a wide mix of differing quoting styles, which can be visually disorienting. The goal of this draft is to introduce a standardized way to structure quoted content in message replies and forwarded messages. This allows the sending MUA to annotate the various components of the quoted content in such a way that the receiving MUA can then apply a consistent presentation across all messages. 2. Conventions and Definitions The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here. 3. Overview An MUA that supports Structured Quoted Content composes the HTML part of a reply or forward as usual, in its own quoting style. It then: * marks each part of the quoted content in the HTML part with an element that has a data-id attribute (Section 6); and * adds an application/ld+json part with a JSON-LD object for each marked element, whose @id matches the element's data-id (Section 5). The figure below shows this for a quote introduced by an attribution line. HTML part JSON-LD part --------- ------------
... TextContent (Alice's text)
On Sep 15, 2025, at 9:47 AM, Alice Chen <alice@example.com> wrote:
From: Carol Davies <carol@example.com> Tao, et al. Expires 5 May 2027 [Page 20] Internet-Draft Structured Quoted Content November 2026
Sent: Monday, October 6, 2025 9:00 AM
To: Dave Nguyen <dave@example.com>; Eve Larsson <eve@example.com>
Subject: Lorem ipsum
From: Grace Kim <grace@example.com> Sent: Tuesday, October 7, 2025 10:15 To: Frank Osei <frank@example.com>; Heidi Mueller <heidi@example.com>; Ivan Santos <ivan@example.com> Subject: Re: Lorem ipsum