<?xml version='1.0' encoding='utf-8'?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" version="3" ipr="trust200902" category="std" docName="draft-ietf-jmap-sieve-22" number="9661" obsoletes="" updates="" submissionType="IETF" consensus="true" xml:lang="en" tocInclude="true" symRefs="true" sortRefs="true" prepTime="2024-09-26T18:53:51" indexInclude="true" scripts="Common,Latin" tocDepth="3">
  <link href="https://datatracker.ietf.org/doc/draft-ietf-jmap-sieve-22" rel="prev"/>
  <link href="https://dx.doi.org/10.17487/rfc9661" rel="alternate"/>
  <link href="urn:issn:2070-1721" rel="alternate"/>
  <front>
    <title abbrev="JMAP Sieve">The JSON Meta Application Protocol (JMAP) for Sieve Scripts</title>
    <seriesInfo name="RFC" value="9661" stream="IETF"/>
    <author initials="K." surname="Murchison" fullname="Kenneth Murchison">
      <organization abbrev="Fastmail" showOnFrontPage="true">Fastmail US LLC</organization>
      <address>
        <postal>
          <street>1429 Walnut Street, Suite 1201</street>
          <city>Philadelphia</city>
          <region>PA</region>
          <code>19102</code>
          <country>United States of America</country>
        </postal>
        <email>murch@fastmailteam.com</email>
      </address>
    </author>
    <date month="09" year="2024"/>
    <area>ART</area>
    <workgroup>jmap</workgroup>
    <keyword>JMAP</keyword>
    <keyword>JSON</keyword>
    <keyword>Sieve</keyword>
    <abstract pn="section-abstract">
      <t indent="0" pn="section-abstract-1">This document specifies a data model for managing Sieve
      scripts on a server using the JSON Meta Application Protocol
      (JMAP).
      Clients can use this protocol to efficiently search, access,
      organize, and validate Sieve scripts.
      </t>
    </abstract>
    <boilerplate>
      <section anchor="status-of-memo" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.1">
        <name slugifiedName="name-status-of-this-memo">Status of This Memo</name>
        <t indent="0" pn="section-boilerplate.1-1">
            This is an Internet Standards Track document.
        </t>
        <t indent="0" pn="section-boilerplate.1-2">
            This document is a product of the Internet Engineering Task Force
            (IETF).  It represents the consensus of the IETF community.  It has
            received public review and has been approved for publication by
            the Internet Engineering Steering Group (IESG).  Further
            information on Internet Standards is available in Section 2 of 
            RFC 7841.
        </t>
        <t indent="0" pn="section-boilerplate.1-3">
            Information about the current status of this document, any
            errata, and how to provide feedback on it may be obtained at
            <eref target="https://www.rfc-editor.org/info/rfc9661" brackets="none"/>.
        </t>
      </section>
      <section anchor="copyright" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.2">
        <name slugifiedName="name-copyright-notice">Copyright Notice</name>
        <t indent="0" pn="section-boilerplate.2-1">
            Copyright (c) 2024 IETF Trust and the persons identified as the
            document authors. All rights reserved.
        </t>
        <t indent="0" pn="section-boilerplate.2-2">
            This document is subject to BCP 78 and the IETF Trust's Legal
            Provisions Relating to IETF Documents
            (<eref target="https://trustee.ietf.org/license-info" brackets="none"/>) 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.
        </t>
      </section>
    </boilerplate>
    <toc>
      <section anchor="toc" numbered="false" removeInRFC="false" toc="exclude" pn="section-toc.1">
        <name slugifiedName="name-table-of-contents">Table of Contents</name>
        <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1">
          <li pn="section-toc.1-1.1">
            <t indent="0" pn="section-toc.1-1.1.1"><xref derivedContent="1" format="counter" sectionFormat="of" target="section-1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-introduction">Introduction</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.1.2">
              <li pn="section-toc.1-1.1.2.1">
                <t indent="0" keepWithNext="true" pn="section-toc.1-1.1.2.1.1"><xref derivedContent="1.1" format="counter" sectionFormat="of" target="section-1.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-notational-conventions">Notational Conventions</xref></t>
              </li>
              <li pn="section-toc.1-1.1.2.2">
                <t indent="0" pn="section-toc.1-1.1.2.2.1"><xref derivedContent="1.2" format="counter" sectionFormat="of" target="section-1.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-addition-to-the-capabilitie">Addition to the Capabilities Object</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.1.2.2.2">
                  <li pn="section-toc.1-1.1.2.2.2.1">
                    <t indent="0" keepWithNext="true" pn="section-toc.1-1.1.2.2.2.1.1"><xref derivedContent="1.2.1" format="counter" sectionFormat="of" target="section-1.2.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-urnietfparamsjmapsieve">urn:ietf:params:jmap:sieve</xref></t>
                  </li>
                  <li pn="section-toc.1-1.1.2.2.2.2">
                    <t indent="0" keepWithNext="true" pn="section-toc.1-1.1.2.2.2.2.1"><xref derivedContent="1.2.2" format="counter" sectionFormat="of" target="section-1.2.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-example">Example</xref></t>
                  </li>
                </ul>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.2">
            <t indent="0" pn="section-toc.1-1.2.1"><xref derivedContent="2" format="counter" sectionFormat="of" target="section-2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-sieve-scripts">Sieve Scripts</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.2.2">
              <li pn="section-toc.1-1.2.2.1">
                <t indent="0" pn="section-toc.1-1.2.2.1.1"><xref derivedContent="2.1" format="counter" sectionFormat="of" target="section-2.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-sieve-script-properties">Sieve Script Properties</xref></t>
              </li>
              <li pn="section-toc.1-1.2.2.2">
                <t indent="0" pn="section-toc.1-1.2.2.2.1"><xref derivedContent="2.2" format="counter" sectionFormat="of" target="section-2.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-sieve-script-content">Sieve Script Content</xref></t>
              </li>
              <li pn="section-toc.1-1.2.2.3">
                <t indent="0" pn="section-toc.1-1.2.2.3.1"><xref derivedContent="2.3" format="counter" sectionFormat="of" target="section-2.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-sievescript-get">SieveScript/get</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.2.2.3.2">
                  <li pn="section-toc.1-1.2.2.3.2.1">
                    <t indent="0" pn="section-toc.1-1.2.2.3.2.1.1"><xref derivedContent="2.3.1" format="counter" sectionFormat="of" target="section-2.3.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-examples">Examples</xref></t>
                  </li>
                </ul>
              </li>
              <li pn="section-toc.1-1.2.2.4">
                <t indent="0" pn="section-toc.1-1.2.2.4.1"><xref derivedContent="2.4" format="counter" sectionFormat="of" target="section-2.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-sievescript-set">SieveScript/set</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.2.2.4.2">
                  <li pn="section-toc.1-1.2.2.4.2.1">
                    <t indent="0" pn="section-toc.1-1.2.2.4.2.1.1"><xref derivedContent="2.4.1" format="counter" sectionFormat="of" target="section-2.4.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-examples-2">Examples</xref></t>
                  </li>
                </ul>
              </li>
              <li pn="section-toc.1-1.2.2.5">
                <t indent="0" pn="section-toc.1-1.2.2.5.1"><xref derivedContent="2.5" format="counter" sectionFormat="of" target="section-2.5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-sievescript-query">SieveScript/query</xref></t>
              </li>
              <li pn="section-toc.1-1.2.2.6">
                <t indent="0" pn="section-toc.1-1.2.2.6.1"><xref derivedContent="2.6" format="counter" sectionFormat="of" target="section-2.6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-sievescript-validate">SieveScript/validate</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.3">
            <t indent="0" pn="section-toc.1-1.3.1"><xref derivedContent="3" format="counter" sectionFormat="of" target="section-3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-quotas">Quotas</xref></t>
          </li>
          <li pn="section-toc.1-1.4">
            <t indent="0" pn="section-toc.1-1.4.1"><xref derivedContent="4" format="counter" sectionFormat="of" target="section-4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-compatibility-with-jmap-vac">Compatibility with JMAP Vacation Response</xref></t>
          </li>
          <li pn="section-toc.1-1.5">
            <t indent="0" pn="section-toc.1-1.5.1"><xref derivedContent="5" format="counter" sectionFormat="of" target="section-5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-security-considerations">Security Considerations</xref></t>
          </li>
          <li pn="section-toc.1-1.6">
            <t indent="0" pn="section-toc.1-1.6.1"><xref derivedContent="6" format="counter" sectionFormat="of" target="section-6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-iana-considerations">IANA Considerations</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.6.2">
              <li pn="section-toc.1-1.6.2.1">
                <t indent="0" pn="section-toc.1-1.6.2.1.1"><xref derivedContent="6.1" format="counter" sectionFormat="of" target="section-6.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-jmap-capability-registratio">JMAP Capability Registration for "sieve"</xref></t>
              </li>
              <li pn="section-toc.1-1.6.2.2">
                <t indent="0" pn="section-toc.1-1.6.2.2.1"><xref derivedContent="6.2" format="counter" sectionFormat="of" target="section-6.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-jmap-data-type-registration">JMAP Data Type  Registration for "SieveScript"</xref></t>
              </li>
              <li pn="section-toc.1-1.6.2.3">
                <t indent="0" pn="section-toc.1-1.6.2.3.1"><xref derivedContent="6.3" format="counter" sectionFormat="of" target="section-6.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-jmap-error-codes-registry">JMAP Error Codes Registry</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.6.2.3.2">
                  <li pn="section-toc.1-1.6.2.3.2.1">
                    <t indent="0" pn="section-toc.1-1.6.2.3.2.1.1"><xref derivedContent="6.3.1" format="counter" sectionFormat="of" target="section-6.3.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-invalidsieve">invalidSieve</xref></t>
                  </li>
                  <li pn="section-toc.1-1.6.2.3.2.2">
                    <t indent="0" pn="section-toc.1-1.6.2.3.2.2.1"><xref derivedContent="6.3.2" format="counter" sectionFormat="of" target="section-6.3.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-sieveisactive">sieveIsActive</xref></t>
                  </li>
                </ul>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.7">
            <t indent="0" pn="section-toc.1-1.7.1"><xref derivedContent="7" format="counter" sectionFormat="of" target="section-7"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-references">References</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.7.2">
              <li pn="section-toc.1-1.7.2.1">
                <t indent="0" pn="section-toc.1-1.7.2.1.1"><xref derivedContent="7.1" format="counter" sectionFormat="of" target="section-7.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-normative-references">Normative References</xref></t>
              </li>
              <li pn="section-toc.1-1.7.2.2">
                <t indent="0" pn="section-toc.1-1.7.2.2.1"><xref derivedContent="7.2" format="counter" sectionFormat="of" target="section-7.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-informative-references">Informative References</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.8">
            <t indent="0" pn="section-toc.1-1.8.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.a"/><xref derivedContent="" format="title" sectionFormat="of" target="name-acknowledgments">Acknowledgments</xref></t>
          </li>
          <li pn="section-toc.1-1.9">
            <t indent="0" pn="section-toc.1-1.9.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.b"/><xref derivedContent="" format="title" sectionFormat="of" target="name-authors-address">Author's Address</xref></t>
          </li>
        </ul>
      </section>
    </toc>
  </front>
  <middle>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-1">
      <name slugifiedName="name-introduction">Introduction</name>
      <t indent="0" pn="section-1-1"><xref target="RFC8620" format="default" sectionFormat="of" derivedContent="RFC8620">The JSON Meta Application Protocol (JMAP)</xref>
      is a generic protocol for
      synchronizing data, such as mail, calendars, or contacts, between
      a client and a server.

      It is optimized for mobile and web environments, and it aims to
      provide a consistent interface to different data types.
      </t>
      <t indent="0" pn="section-1-2">This specification defines a data model for managing
      <xref target="RFC5228" format="default" sectionFormat="of" derivedContent="RFC5228">Sieve scripts</xref> on
      a server using JMAP.

      The data model is designed to allow a server to provide
      consistent access to the same scripts via
      <xref target="RFC5804" format="default" sectionFormat="of" derivedContent="RFC5804">ManageSieve</xref> as well as JMAP.
      </t>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-1.1">
        <name slugifiedName="name-notational-conventions">Notational Conventions</name>
        <t indent="0" pn="section-1.1-1">The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>",
        "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>",
        "<bcp14>SHALL NOT</bcp14>", "<bcp14>SHOULD</bcp14>",
        "<bcp14>SHOULD NOT</bcp14>",
        "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>",
        "<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document
        are to be interpreted as described in BCP 14
        <xref target="RFC2119" format="default" sectionFormat="of" derivedContent="RFC2119"/> <xref target="RFC8174" format="default" sectionFormat="of" derivedContent="RFC8174"/> when, and only
        when, they appear in all capitals, as shown here.</t>
        <t indent="0" pn="section-1.1-2">Type signatures, examples, and property descriptions in
        this document follow the conventions established in
        <xref target="RFC8620" section="1.1" format="default" sectionFormat="of" derivedLink="https://rfc-editor.org/rfc/rfc8620#section-1.1" derivedContent="RFC8620"/>.
        This document also uses data types and terminology established
        in Sections <xref target="RFC8620" section="1.2" sectionFormat="bare" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8620#section-1.2" derivedContent="RFC8620"/> through <xref target="RFC8620" section="1.6" sectionFormat="bare" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8620#section-1.6" derivedContent="RFC8620"/> of
        <xref target="RFC8620" format="default" sectionFormat="of" derivedContent="RFC8620"/>.</t>
        <t indent="0" pn="section-1.1-3">The term "SieveScript" (with this specific capitalization) is
        used to refer to the data type defined in <xref target="object" format="default" sectionFormat="of" derivedContent="Section 2"/>
        and instances of this data type used throughout this document.
        Servers <bcp14>MUST</bcp14> support all properties specified for the
        data type defined in this document.</t>
        <t indent="0" pn="section-1.1-4">For brevity, JMAP API examples
        (see <xref target="RFC8620" section="3" format="default" sectionFormat="of" derivedLink="https://rfc-editor.org/rfc/rfc8620#section-3" derivedContent="RFC8620"/>)
        only show the "methodCalls" property of the "Request"
        object and the "methodResponses" property of the "Response"
        object.
        All other examples are shown using the
        <xref target="RFC9112" format="default" sectionFormat="of" derivedContent="RFC9112">HTTP/1.1 protocol</xref>.</t>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-1.2">
        <name slugifiedName="name-addition-to-the-capabilitie">Addition to the Capabilities Object</name>
        <t indent="0" pn="section-1.2-1">The "capabilities" object is returned as part of the JMAP
        Session object;
        see <xref target="RFC8620" section="2" sectionFormat="comma" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8620#section-2" derivedContent="RFC8620"/>.
        This document defines one additional capability URI.
        </t>
        <section anchor="capa" numbered="true" toc="include" removeInRFC="false" pn="section-1.2.1">
          <name slugifiedName="name-urnietfparamsjmapsieve">urn:ietf:params:jmap:sieve</name>
          <t indent="0" pn="section-1.2.1-1">The urn:ietf:params:jmap:sieve URI represents support for
          the SieveScript data type and associated API methods.
          The value of this property in the JMAP Session
          "capabilities" property is an object that <bcp14>MUST</bcp14> contain
          the following information on server capabilities:
          </t>
          <dl spacing="normal" indent="3" newline="false" pn="section-1.2.1-2">
            <dt pn="section-1.2.1-2.1"><strong>implementation</strong>:</dt>
            <dd pn="section-1.2.1-2.2">
              <t indent="0" pn="section-1.2.1-2.2.1">
                <tt>String</tt>
              </t>
              <t indent="0" pn="section-1.2.1-2.2.2">
                The name and version of the Sieve implementation.
              </t>
            </dd>
          </dl>
          <t indent="0" pn="section-1.2.1-3">The value of this property in an account's
          "accountCapabilities" property is an object that <bcp14>MUST</bcp14> contain
          the following information on per-account server capabilities:
          </t>
          <dl spacing="normal" indent="3" newline="false" pn="section-1.2.1-4">
            <dt pn="section-1.2.1-4.1"><strong>maxSizeScriptName</strong>:</dt>
            <dd pn="section-1.2.1-4.2">
              <t indent="0" pn="section-1.2.1-4.2.1"><tt>UnsignedInt</tt>
              </t>
              <t indent="0" pn="section-1.2.1-4.2.2">
                The maximum length, in octets, allowed for the
                name of a SieveScript.
                For compatibility with ManageSieve, this <bcp14>MUST</bcp14> be at
                least 512 (up to 128 Unicode characters).
              </t>
            </dd>
            <dt pn="section-1.2.1-4.3"><strong>maxSizeScript</strong>:</dt>
            <dd pn="section-1.2.1-4.4">
              <t indent="0" pn="section-1.2.1-4.4.1"><tt>UnsignedInt|null</tt>
              </t>
              <t indent="0" pn="section-1.2.1-4.4.2">
                The maximum size (in octets) of a Sieve script the
                server is willing to store for the user,
                or <tt>null</tt> for no limit.
              </t>
            </dd>
            <dt pn="section-1.2.1-4.5"><strong>maxNumberScripts</strong>:</dt>
            <dd pn="section-1.2.1-4.6">
              <t indent="0" pn="section-1.2.1-4.6.1"><tt>UnsignedInt|null</tt>
              </t>
              <t indent="0" pn="section-1.2.1-4.6.2">
                The maximum number of Sieve scripts the server is
                willing to store for the user,
                or <tt>null</tt> for no limit.
              </t>
            </dd>
            <dt pn="section-1.2.1-4.7"><strong>maxNumberRedirects</strong>:</dt>
            <dd pn="section-1.2.1-4.8">
              <t indent="0" pn="section-1.2.1-4.8.1"><tt>UnsignedInt|null</tt>
              </t>
              <t indent="0" pn="section-1.2.1-4.8.2">
                The maximum number of Sieve "redirect" actions a
                script can perform during a single evaluation,
                or <tt>null</tt> for no limit.
                Note that this is different from the total number of
                "redirect" actions a script can contain.
              </t>
            </dd>
            <dt pn="section-1.2.1-4.9"><strong>sieveExtensions</strong>:</dt>
            <dd pn="section-1.2.1-4.10">
              <t indent="0" pn="section-1.2.1-4.10.1"><tt>String[]</tt>
              </t>
              <t indent="0" pn="section-1.2.1-4.10.2">
                A list of case-sensitive Sieve capability strings (as
                listed in the Sieve "require" action; see
                <xref target="RFC5228" section="3.2" sectionFormat="comma" format="default" derivedLink="https://rfc-editor.org/rfc/rfc5228#section-3.2" derivedContent="RFC5228"/>)
                indicating the extensions supported by the Sieve engine.
              </t>
            </dd>
            <dt pn="section-1.2.1-4.11"><strong>notificationMethods</strong>:</dt>
            <dd pn="section-1.2.1-4.12">
              <t indent="0" pn="section-1.2.1-4.12.1"><tt>String[]|null</tt>
              </t>
              <t indent="0" pn="section-1.2.1-4.12.2">
                A list of
                <xref target="RFC3986" format="default" sectionFormat="of" derivedContent="RFC3986">URI scheme parts</xref>
                for notification methods supported by the Sieve
                <xref target="RFC5435" format="default" sectionFormat="of" derivedContent="RFC5435">"enotify" extension</xref>,
                or <tt>null</tt> if the extension
                is not supported by the Sieve engine.
              </t>
            </dd>
            <dt pn="section-1.2.1-4.13"><strong>externalLists</strong>:</dt>
            <dd pn="section-1.2.1-4.14">
              <t indent="0" pn="section-1.2.1-4.14.1"><tt>String[]|null</tt>
              </t>
              <t indent="0" pn="section-1.2.1-4.14.2">
                A list of
                <xref target="RFC3986" format="default" sectionFormat="of" derivedContent="RFC3986">URI scheme parts</xref>
                for externally stored list types supported by the
                Sieve <xref target="RFC6134" format="default" sectionFormat="of" derivedContent="RFC6134">"extlists" extension</xref>,
                or <tt>null</tt> if the extension
                is not supported by the Sieve engine.
              </t>
            </dd>
          </dl>
        </section>
        <section anchor="session" numbered="true" toc="include" removeInRFC="false" pn="section-1.2.2">
          <name slugifiedName="name-example">Example</name>
          <t keepWithNext="true" indent="0" pn="section-1.2.2-1">
            This example JMAP Session object shows a user that has access to their
            own Sieve scripts with support for a few Sieve extensions:
          </t>
          <sourcecode name="" type="json" markers="false" pn="section-1.2.2-2">
{
  "capabilities": {
    "urn:ietf:params:jmap:core": {
      ...
    },
    "urn:ietf:params:jmap:mail": {},
    "urn:ietf:params:jmap:quota": {},
    "urn:ietf:params:jmap:blob": {},
    "urn:ietf:params:jmap:sieve": {
      "implementation": "ACME Email Filtering"
    },
    "urn:ietf:params:jmap:vacationresponse": {},
    ...
  },
  "accounts": {
    "ken": {
      "name": "ken@example.com",
      "isPersonal": true,
      "isReadOnly": false,
      "accountCapabilities": {
        "urn:ietf:params:jmap:core": {},
        "urn:ietf:params:jmap:quota": {},
        "urn:ietf:params:jmap:mail": {
          ...
        },
        "urn:ietf:params:jmap:blob": {
          "supportedTypeNames": [
            "Email"
            "SieveScript",
            ...
          ],
          ...
        },
        "urn:ietf:params:jmap:sieve": {
          "maxSizeScriptName": 512,
          "maxSizeScript": 65536,
          "maxNumberScripts": 5,
          "maxNumberRedirects": null,
          "sieveExtensions": [
            "fileinto",
            "imap4flags",
            "enotify",
            ...
          ],
          "notificationMethods": [
            "mailto"
          ],
          "externalLists": null,
        },
        "urn:ietf:params:jmap:vacationresponse": {},
        ...
      },
      ...
    }
  },
  "primaryAccounts": {
    "urn:ietf:params:jmap:mail": "ken",
    "urn:ietf:params:jmap:sieve": "ken",
    "urn:ietf:params:jmap:vacationresponse": "ken",
    ...
  },
  "username": "ken@example.com",
  "apiUrl": "/jmap/",
  "downloadUrl":
    "/jmap/download/{accountId}/{blobId}/{name}?accept={type}",
  "uploadUrl": "/jmap/upload/{accountId}/",
  ...
}
</sourcecode>
        </section>
      </section>
    </section>
    <section anchor="object" numbered="true" toc="include" removeInRFC="false" pn="section-2">
      <name slugifiedName="name-sieve-scripts">Sieve Scripts</name>
      <t indent="0" pn="section-2-1">A "SieveScript" object represents
      a single <xref target="RFC5228" format="default" sectionFormat="of" derivedContent="RFC5228">Sieve script</xref> for
      filtering email messages at the time of final delivery.
      </t>
      <section anchor="props" numbered="true" toc="include" removeInRFC="false" pn="section-2.1">
        <name slugifiedName="name-sieve-script-properties">Sieve Script Properties</name>
        <t indent="0" pn="section-2.1-1">A "SieveScript" object has the
        following properties:

        </t>
        <dl spacing="normal" indent="3" newline="false" pn="section-2.1-2">
          <dt pn="section-2.1-2.1"><strong>id</strong>:</dt>
          <dd pn="section-2.1-2.2">
            <t indent="0" pn="section-2.1-2.2.1"><tt>Id</tt>
            (immutable; server-set)
            </t>
            <t indent="0" pn="section-2.1-2.2.2">
              The id of the script.
            </t>
          </dd>
          <dt pn="section-2.1-2.3"><strong>name</strong>:</dt>
          <dd pn="section-2.1-2.4">
            <t indent="0" pn="section-2.1-2.4.1"><tt>String|null</tt>
            (optional; default is server dependent)
            </t>
            <t indent="0" pn="section-2.1-2.4.2">
              User-visible name for the SieveScript.
              If non-null, this <bcp14>MUST</bcp14> be a
              <xref target="RFC5198" format="default" sectionFormat="of" derivedContent="RFC5198">Net-Unicode string</xref>
              of at least 1 character in length, subject to the
              maximum size given in the "capability" object.
            </t>
            <t indent="0" pn="section-2.1-2.4.3">
              For compatibility with ManageSieve, servers <bcp14>MUST</bcp14> reject
              names that contain any of the following Unicode characters:
              U+0000-U+001F, U+007F-U+009F, U+2028, or U+2029.
            </t>
            <t indent="0" pn="section-2.1-2.4.4">
              Servers <bcp14>MAY</bcp14> reject names that violate server policy
              (e.g., names containing a slash (/)).
            </t>
            <t indent="0" pn="section-2.1-2.4.5">
              The name <bcp14>MUST</bcp14> be unique among all SieveScripts within an
              account.
            </t>
          </dd>
          <dt pn="section-2.1-2.5"><strong>blobId</strong>:</dt>
          <dd pn="section-2.1-2.6">
            <t indent="0" pn="section-2.1-2.6.1"><tt>Id</tt>
            </t>
            <t indent="0" pn="section-2.1-2.6.2">
              The id of the blob containing the raw octets of the script.
            </t>
          </dd>
          <dt pn="section-2.1-2.7"><strong>isActive</strong>:</dt>
          <dd pn="section-2.1-2.8">
            <t indent="0" pn="section-2.1-2.8.1"><tt>Boolean</tt>
            (server-set; default: false)
            </t>
            <t indent="0" pn="section-2.1-2.8.2">
              Indicator that the SieveScript is actively filtering
              incoming messages.
            </t>
            <t indent="0" pn="section-2.1-2.8.3">
              A user may have at most one active script.
              The <xref target="set" format="default" sectionFormat="of" derivedContent="Section 2.4">SieveScript/set method</xref> is
              used for changing the active script or disabling Sieve
              processing.
            </t>
          </dd>
        </dl>
      </section>
      <section anchor="content" numbered="true" toc="include" removeInRFC="false" pn="section-2.2">
        <name slugifiedName="name-sieve-script-content">Sieve Script Content</name>
        <t indent="0" pn="section-2.2-1">A script <bcp14>MUST</bcp14> be <xref target="RFC3629" format="default" sectionFormat="of" derivedContent="RFC3629">UTF-8 content</xref>
          of at least 1 character in length, subject to the
          syntax of <xref target="RFC5228" format="default" sectionFormat="of" derivedContent="RFC5228">Sieve</xref>.
          A script <bcp14>MUST NOT</bcp14> contain any "require" statement(s)
          mentioning Sieve capability strings not present in the
          <xref target="capa" format="default" sectionFormat="of" derivedContent="Section 1.2.1">"capability" object</xref>.
          Note that if the Sieve <xref target="RFC5463" format="default" sectionFormat="of" derivedContent="RFC5463">"ihave" capability string </xref>
          is present in the "capability" object,
          the script <bcp14>MAY</bcp14> mention unrecognized/unsupported extensions
          in the "ihave" test.
        </t>
        <t indent="0" pn="section-2.2-2">Script content is treated as a binary blob and
          uploaded/downloaded via the mechanisms provided in  
          Sections <xref target="RFC8620" section="6.1" sectionFormat="bare" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8620#section-6.1" derivedContent="RFC8620"/> and <xref target="RFC8620" section="6.2" sectionFormat="bare" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8620#section-6.2" derivedContent="RFC8620"/> of <xref target="RFC8620" format="default" sectionFormat="of" derivedContent="RFC8620"/>,
          respectively, and/or via the JMAP Blob management methods provided in
          Sections <xref target="RFC9404" section="4.1" sectionFormat="bare" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9404#section-4.1" derivedContent="RFC9404"/> and <xref target="RFC9404" section="4.2" sectionFormat="bare" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9404#section-4.2" derivedContent="RFC9404"/> of <xref target="RFC9404" format="default" sectionFormat="of" derivedContent="RFC9404"/>,
          respectively.
        </t>
        <t indent="0" pn="section-2.2-3">Downloading script content via the JMAP downloadUrl or the
          Blob/get method provides functionality equivalent to that of the
          GETSCRIPT command defined in <xref target="RFC5804" format="default" sectionFormat="of" derivedContent="RFC5804"/>.
        </t>
      </section>
      <section anchor="get" numbered="true" toc="include" removeInRFC="false" pn="section-2.3">
        <name slugifiedName="name-sievescript-get">SieveScript/get</name>
        <t indent="0" pn="section-2.3-1">This is a standard "/get" method as described in
        <xref target="RFC8620" section="5.1" sectionFormat="comma" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8620#section-5.1" derivedContent="RFC8620"/>.
        The "ids" argument may be
        <tt>null</tt> to fetch all scripts at once. 
        </t>
        <t indent="0" pn="section-2.3-2">This method provides functionality equivalent to that of the
        LISTSCRIPTS command defined in <xref target="RFC5804" format="default" sectionFormat="of" derivedContent="RFC5804"/>.
        </t>
        <section numbered="true" toc="include" removeInRFC="false" pn="section-2.3.1">
          <name slugifiedName="name-examples">Examples</name>
          <t keepWithNext="true" indent="0" pn="section-2.3.1-1">
            List all scripts:
          </t>
          <sourcecode name="" type="json" markers="false" pn="section-2.3.1-2">
[
  ["SieveScript/get", {
    "accountId": "ken"
  }, "0"]
]

[
  [
    "SieveScript/get",
    {
      "state": "1634915373.240633104-120",
      "list": [
        {
          "id": "2d647053-dded-418d-917a-63eda3ac8f7b",
          "name": "test1",
          "isActive": true,
          "blobId": "S7"
        }
      ],
      "notFound": [],
      "accountId": "ken"
    },
    "0"
  ]
]
</sourcecode>
          <t keepWithNext="true" indent="0" pn="section-2.3.1-3">
            Download the script content via
            the JMAP downloadUrl as advertised in the example in <xref target="session" format="default" sectionFormat="of" derivedContent="Section 1.2.2"/>:
          </t>
          <sourcecode name="" type="http-message" markers="false" pn="section-2.3.1-4">
GET /jmap/download/ken/S7/test1.siv?accept=application/sieve HTTP/1.1
Host: jmap.example.com
Authorization: Basic a2VuOnBhc3N3b3Jk

HTTP/1.1 200 OK
Date: Fri, 22 Oct 2021 15:27:38 GMT
Content-Type: application/sieve; charset=utf-8
Content-Disposition: attachment; filename="test1.siv"
Content-Length: 49

require ["fileinto"];
fileinto "INBOX.target";
</sourcecode>
          <t keepWithNext="true" indent="0" pn="section-2.3.1-5">
            Fetch script properties
            and content in a single JMAP API request using the
            <xref target="RFC9404" format="default" sectionFormat="of" derivedContent="RFC9404"> JMAP Blob management extension</xref>:
          </t>
          <sourcecode name="" type="json" markers="false" pn="section-2.3.1-6">
[
  ["SieveScript/get", {
    "accountId": "ken",
    "ids": [ "2d647053-dded-418d-917a-63eda3ac8f7b" ]
  }, "0"],
  ["Blob/get", {
    "accountId": "ken",
    "#ids": {
      "resultOf": "0",
      "name": "SieveScript/get",
      "path": "/list/*/blobId"
    }
  }, "1"]
]

[
  [
    "SieveScript/get",
    {
      "state": "1634915373.240633104-120",
      "list": [
        {
          "id": "2d647053-dded-418d-917a-63eda3ac8f7b",
          "name": "test1",
          "isActive": true,
          "blobId": "S7"
        }
      ],
      "notFound": [],
      "accountId": "ken"
    },
    "0"
  ],
  [
    "Blob/get",
    {
      "list": [
        {
          "id": "S7",
          "data:asText":
     "require [\"fileinto\"];\\r\\nfileinto \"INBOX.target\";\\r\\n",
          "size": 49
        }
      ],
      "notFound": [],
      "accountId": "ken"
    },
    "1"
  ]
]
</sourcecode>
        </section>
      </section>
      <section anchor="set" numbered="true" toc="include" removeInRFC="false" pn="section-2.4">
        <name slugifiedName="name-sievescript-set">SieveScript/set</name>
        <t indent="0" pn="section-2.4-1">This is a standard "/set" method as described in
        <xref target="RFC8620" section="5.3" sectionFormat="comma" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8620#section-5.3" derivedContent="RFC8620"/>,
        but with the following additional optional request arguments:

        </t>
        <dl spacing="normal" indent="3" newline="false" pn="section-2.4-2">
          <dt pn="section-2.4-2.1"><strong>onSuccessActivateScript</strong>:</dt>
          <dd pn="section-2.4-2.2">
            <t indent="0" pn="section-2.4-2.2.1"><tt>Id</tt>
            </t>
            <t indent="0" pn="section-2.4-2.2.2">
            The id of the SieveScript to activate if and
            only if all of the creations, modifications, and
            destructions (if any) succeed.
            (For references to SieveScript creations, this is
            equivalent to a creation-reference, so the id will be the
            creation id prefixed with a "#".)
            The currently active SieveScript (if any) will be deactivated
            before activating the specified SieveScript.
            </t>
            <t indent="0" pn="section-2.4-2.2.3">
            If omitted, or if the id is either invalid or nonexistent, it <bcp14>MUST</bcp14> be
            ignored, and the currently active SieveScript (if any) will
            remain as such.
            </t>
            <t indent="0" pn="section-2.4-2.2.4">
            The id of any activated SieveScript <bcp14>MUST</bcp14> be reported in
            either the "created" or "updated" argument in the response
            as appropriate, including a value of "true" for  the "isActive"
            property.
            The id of any deactivated SieveScript <bcp14>MUST</bcp14> be reported in
            the "updated" argument in the response, including a value of
            "false" for the "isActive" property.
            </t>
          </dd>
          <dt pn="section-2.4-2.3"><strong>onSuccessDeactivateScript</strong>:</dt>
          <dd pn="section-2.4-2.4">
            <t indent="0" pn="section-2.4-2.4.1"><tt>Boolean</tt>
            </t>
            <t indent="0" pn="section-2.4-2.4.2">
            If "true", the currently active
            SieveScript (if any) will be deactivated if and only if
            all of the creations, modifications, and destructions (if
            any) succeed.
            If "false" or omitted, the currently active SieveScript (if
            any) will remain as such.
            </t>
            <t indent="0" pn="section-2.4-2.4.3">

            The id of any deactivated SieveScript <bcp14>MUST</bcp14> be reported in
            the "updated" argument in the response, including a value of
            "false" for the "isActive" property.
            </t>
          </dd>
        </dl>
        <t indent="0" pn="section-2.4-3">If both the "onSuccessActivateScript" and
        "onSuccessDeactivateScript" arguments are
        present in the request, then
        "onSuccessDeactivateScript" <bcp14>MUST</bcp14> be processed first.
        If neither argument is present in the request, the currently
        active SieveScript (if any) will remain as such.
        </t>
        <t indent="0" pn="section-2.4-4">This method provides functionality equivalent to that of the
        PUTSCRIPT, DELETESCRIPT, RENAMESCRIPT, and SETACTIVE commands defined
        in <xref target="RFC5804" format="default" sectionFormat="of" derivedContent="RFC5804"/>.
        </t>
        <t indent="0" pn="section-2.4-5">Script content must first be uploaded as per
        <xref target="content" format="default" sectionFormat="of" derivedContent="Section 2.2"/> prior to referencing it in a
        SieveScript/set call.</t>
        <t indent="0" pn="section-2.4-6">If the SieveScript cannot be created or updated because it
        would result in two SieveScripts with the same name, the
        server <bcp14>MUST</bcp14> reject the request with an "alreadyExists"
        SetError.
        An "existingId" property of type "Id" <bcp14>MUST</bcp14> be included on the
        SetError object with the id of the existing SieveScript.</t>
        <t indent="0" pn="section-2.4-7">If the SieveScript cannot be created or updated because
        its size exceeds the "maxSizeScript" limit, the server <bcp14>MUST</bcp14>
        reject the request with a "tooLarge" SetError.</t>
        <t indent="0" pn="section-2.4-8">If the SieveScript cannot be created because it would
        exceed the "maxNumberScripts" limit or would exceed a
        server-imposed storage limit, the server <bcp14>MUST</bcp14>
        reject the request with an "overQuota" SetError.</t>
        <t indent="0" pn="section-2.4-9">The active SieveScript <bcp14>MUST NOT</bcp14> be destroyed
        unless it is first deactivated in a separate SieveScript/set
        method call.</t>
        <t indent="0" pn="section-2.4-10">The following extra SetError types are defined:
        </t>
        <t indent="0" pn="section-2.4-11">For "create" and "update":
        </t>
        <dl spacing="normal" indent="3" newline="false" pn="section-2.4-12">
          <dt pn="section-2.4-12.1"><strong>invalidSieve</strong>:</dt>
          <dd pn="section-2.4-12.2">
            <t indent="0" pn="section-2.4-12.2.1">
              The SieveScript content violates the
              <xref target="RFC5228" format="default" sectionFormat="of" derivedContent="RFC5228">Sieve grammar</xref>,
              and/or one
              or more extensions mentioned in the script's "require"
              statement(s) are not supported by the Sieve interpreter.
              The "description" property on
              the SetError object <bcp14>SHOULD</bcp14> contain a specific error
              message giving at least the line number of the first error.</t>
          </dd>
        </dl>
        <t indent="0" pn="section-2.4-13">For "destroy":
        </t>
        <dl spacing="normal" indent="3" newline="false" pn="section-2.4-14">
          <dt pn="section-2.4-14.1"><strong>sieveIsActive</strong>:</dt>
          <dd pn="section-2.4-14.2">
            <t indent="0" pn="section-2.4-14.2.1">
              The SieveScript is active.
            </t>
          </dd>
        </dl>
        <section numbered="true" toc="include" removeInRFC="false" pn="section-2.4.1">
          <name slugifiedName="name-examples-2">Examples</name>
          <t keepWithNext="true" indent="0" pn="section-2.4.1-1">
                Upload a script
                requiring the Imap4Flags Extension
                <xref target="RFC5232" format="default" sectionFormat="of" derivedContent="RFC5232"/>
                using the JMAP uploadUrl as advertised in the example in
                <xref target="session" format="default" sectionFormat="of" derivedContent="Section 1.2.2"/>:
          </t>
          <sourcecode name="" type="http-message" markers="false" pn="section-2.4.1-2">
POST /jmap/upload/ken/ HTTP/1.1
Host: jmap.example.com
Authorization: Basic a2VuOnBhc3N3b3Jk
Content-Type: application/sieve
Content-Length: 98

require "imapflags";

if address :is ["To", "Cc"] "jmap@ietf.org" {
  setflag "\\Flagged";
}


HTTP/1.1 201 Created
Date: Thu, 10 Dec 2020 17:14:31 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 171

{
  "accountId": "ken",
  "blobId": "Gabcc83e44a6e19991c4568d0b94e1767c83dd123",
  "type": "application/sieve"
  "size": 98
}
</sourcecode>
          <t keepWithNext="true" indent="0" pn="section-2.4.1-3">
                Create and activate
                a script using the uploaded blob.
                Note that the response shows that an existing active
                script has been deactivated in lieu of the newly
                created script being activated.
          </t>
          <sourcecode name="" type="json" markers="false" pn="section-2.4.1-4">
[
  ["SieveScript/set", {
    "accountId": "ken",
    "create": {
      "A": {
        "name": null,
        "blobId": "Gabcc83e44a6e19991c4568d0b94e1767c83dd123"
      }
    },
    "onSuccessActivateScript": "#A"
  }, "0"]
]

[
  [
    "SieveScript/set",
    {
      "oldState": "1603741717.50737918-4096",
      "newState": "1603741751.227268529-4096",
      "created": {
        "A": {
          "id": "dd1b164f-8cdc-448c-9f54",
          "name": "ken-20201210T171432-0",
          "blobId": "Sdd1b164f-8cdc-448c-9f54",
          "isActive": true
        }
      },
      "updated": {
        "8abd6f4a-bcb4d-87650-3fcd": {
          "isActive": false
        }
      },
      "destroyed": null,
      "notCreated": null,
      "notUpdated": null,
      "notDestroyed": null,
      "accountId": "ken"
    },
    "0"
  ]
]
</sourcecode>
          <t keepWithNext="true" indent="0" pn="section-2.4.1-5">
            Update the script content using
            the <xref target="RFC9404" format="default" sectionFormat="of" derivedContent="RFC9404"> JMAP Blob management extension</xref>:
          </t>
          <sourcecode name="" type="json" markers="false" pn="section-2.4.1-6">
{
[
  ["Blob/upload", {
    "accountId": "ken",
    "create": {
      "B": {
        "data": [ {
          "data:asText":
            "redirect \"ken@example.com\"\r\n;"
         } ],
        "type": "application/sieve"
      }
    }
  }, "1"],
  ["SieveScript/set", {
    "accountId": "ken",
    "update": { "dd1b164f-8cdc-448c-9f54": {
      "blobId": "#B"
      }
    }
  }, "2"]
]

[
  [
    "Blob/upload",
    {
      "oldState": null,
      "newState": "1603741700.309607123-0128",
      "created": {
        "B": {
          "id": "G969c83e44a6e10871c4568d0b94e1767c83ddeae",
          "blobId": "G969c83e44a6e10871c4568d0b94e1767c83ddeae",
          "type": "application/sieve",
          "size": 29
        }
      },
      "notCreated": null,
      "accountId": "ken"
    },
    "1"
  ],
  [
    "SieveScript/set",
    {
      "oldState": "1603741751.227268529-4096",
      "newState": "1603742603.309607868-4096",
      "created": null,
      "updated": {
        "dd1b164f-8cdc-448c-9f54": null
      },
      "destroyed": null,
      "notCreated": null,
      "notUpdated": null,
      "notDestroyed": null,
      "accountId": "ken"
    },
    "2"
  ]
]
</sourcecode>
          <t keepWithNext="true" indent="0" pn="section-2.4.1-7">
            Update the script name, and deactivate it:
          </t>
          <sourcecode name="" type="json" markers="false" pn="section-2.4.1-8">
[
  ["SieveScript/set", {
    "accountId": "ken",
    "update": { "dd1b164f-8cdc-448c-9f54": {
      "name": "myscript"
      }
    },
    "onSuccessDeactivateScript": true
  }, "3"]
]

[
  [
    "SieveScript/set",
    {
      "oldState": "1603742603.309607868-4096",
      "newState": "1603742967.852315428-4096",
      "created": null,
      "updated": {
        "dd1b164f-8cdc-448c-9f54": {
          "isActive": false
        }
      },
      "destroyed": null,
      "notCreated": null,
      "notUpdated": null,
      "notDestroyed": null,
      "accountId": "ken"
    },
    "3"
  ]
]
</sourcecode>
          <t keepWithNext="true" indent="0" pn="section-2.4.1-9">
            Reactivate the script:
          </t>
          <sourcecode name="" type="json" markers="false" pn="section-2.4.1-10">
[
  ["SieveScript/set", {
    "accountId": "ken",
    "onSuccessActivateScript": "dd1b164f-8cdc-448c-9f54"
  }, "4"]
]

[
  [
    "SieveScript/set",
    {
      "oldState": "1603742967.852315428-4096",
      "newState": "1603744460.316617118-4096",
      "created": null,
      "updated": {
        "dd1b164f-8cdc-448c-9f54": {
          "isActive": true
        }
      },
      "destroyed": null,
      "notCreated": null,
      "notUpdated": null,
      "notDestroyed": null,
      "accountId": "ken"
    },
    "4"
  ]
]
</sourcecode>
          <t keepWithNext="true" indent="0" pn="section-2.4.1-11">
            Deactivate and destroy the active script:
          </t>
          <sourcecode name="" type="json" markers="false" pn="section-2.4.1-12">
[
  ["SieveScript/set", {
    "accountId": "ken",
    "onSuccessDeactivateScript": true
  }, "5"],
  ["SieveScript/set", {
    "accountId": "ken",
    "destroy": [ "dd1b164f-8cdc-448c-9f54" ]
  }, "6"]
]

[
  [
    "SieveScript/set",
    {
      "oldState": "1603744460.316617118-4096",
      "newState": "1603744637.575375572-4096",
      "created": null,
      "updated": {
        "dd1b164f-8cdc-448c-9f54": {
          "isActive": false
        }
      },
      "destroyed": null,
      "notCreated": null,
      "notUpdated": null,
      "notDestroyed": null,
      "accountId": "ken"
    },
    "5"
  ],
  [
    "SieveScript/set",
    {
      "oldState": "1603744637.575375572-4096",
      "newState": "1603744637.854390875-4096",
      "created": null,
      "updated": null,
      "destroyed": [
        "dd1b164f-8cdc-448c-9f54"
      ],
      "notCreated": null,
      "notUpdated": null,
      "notDestroyed": null,
      "accountId": "ken"
    },
    "6"
  ]
]
</sourcecode>
        </section>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-2.5">
        <name slugifiedName="name-sievescript-query">SieveScript/query</name>
        <t indent="0" pn="section-2.5-1">This is a standard "/query" method as described in
        <xref target="RFC8620" section="5.5" sectionFormat="comma" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8620#section-5.5" derivedContent="RFC8620"/>.

        A "FilterCondition" object has the
        following properties, either of which may be omitted:

        </t>
        <dl spacing="normal" indent="3" newline="false" pn="section-2.5-2">
          <dt pn="section-2.5-2.1"><strong>name</strong>:</dt>
          <dd pn="section-2.5-2.2">
            <t indent="0" pn="section-2.5-2.2.1"><tt>String</tt>
            </t>
            <t indent="0" pn="section-2.5-2.2.2">
            The SieveScript "name" property contains the given string.
            </t>
          </dd>
          <dt pn="section-2.5-2.3"><strong>isActive</strong>:</dt>
          <dd pn="section-2.5-2.4">
            <t indent="0" pn="section-2.5-2.4.1"><tt>Boolean</tt>
            </t>
            <t indent="0" pn="section-2.5-2.4.2">
            The "isActive" property of the SieveScript must be
            identical to the value given to match the condition.
            </t>
          </dd>
        </dl>
        <t indent="0" pn="section-2.5-3">The following SieveScript properties <bcp14>MUST</bcp14> be supported for
        sorting:

        </t>
        <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-2.5-4">
          <li pn="section-2.5-4.1">
            <t indent="0" pn="section-2.5-4.1.1"><strong>name</strong>
            </t>
          </li>
          <li pn="section-2.5-4.2">
            <strong>isActive</strong>
          </li>
        </ul>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-2.6">
        <name slugifiedName="name-sievescript-validate">SieveScript/validate</name>
        <t indent="0" pn="section-2.6-1">This method is used by the client to verify Sieve script
        validity without storing the script on the server.
        </t>
        <t indent="0" pn="section-2.6-2">The method takes the following arguments: 

        </t>
        <dl spacing="normal" indent="3" newline="false" pn="section-2.6-3">
          <dt pn="section-2.6-3.1"><strong>accountId</strong>:</dt>
          <dd pn="section-2.6-3.2">
            <t indent="0" pn="section-2.6-3.2.1"><tt>Id</tt>
            </t>
            <t indent="0" pn="section-2.6-3.2.2">
              The id of the account to use.
            </t>
          </dd>
          <dt pn="section-2.6-3.3"><strong>blobId</strong>:</dt>
          <dd pn="section-2.6-3.4">
            <t indent="0" pn="section-2.6-3.4.1"><tt>Id</tt>
            </t>
            <t indent="0" pn="section-2.6-3.4.2">
              The id of the blob containing the raw octets of the
              script to validate,
              subject to the same requirements in
              <xref target="content" format="default" sectionFormat="of" derivedContent="Section 2.2"/>.
            </t>
          </dd>
        </dl>
        <t indent="0" pn="section-2.6-4">The response has the following arguments: 

        </t>
        <dl spacing="normal" indent="3" newline="false" pn="section-2.6-5">
          <dt pn="section-2.6-5.1"><strong>accountId</strong>:</dt>
          <dd pn="section-2.6-5.2">
            <t indent="0" pn="section-2.6-5.2.1"><tt>Id</tt>
            </t>
            <t indent="0" pn="section-2.6-5.2.2">
              The id of the account used for this call.
            </t>
          </dd>
          <dt pn="section-2.6-5.3"><strong>error</strong>:</dt>
          <dd pn="section-2.6-5.4">
            <t indent="0" pn="section-2.6-5.4.1"><tt>SetError|null</tt>
            </t>
            <t indent="0" pn="section-2.6-5.4.2">
              An "invalidSieve" SetError object if the script content
              is invalid (see <xref target="set" format="default" sectionFormat="of" derivedContent="Section 2.4"/>),
              or <tt>null</tt> if the
              script content is valid.
            </t>
          </dd>
        </dl>
        <t indent="0" pn="section-2.6-6">This method provides functionality equivalent to that of the
        CHECKSCRIPT command defined in <xref target="RFC5804" format="default" sectionFormat="of" derivedContent="RFC5804"/>.</t>
        <t indent="0" pn="section-2.6-7">Script content must first be uploaded as per
        <xref target="content" format="default" sectionFormat="of" derivedContent="Section 2.2"/> prior to referencing it in a
        SieveScript/validate call.</t>
      </section>
    </section>
    <section anchor="quotas" numbered="true" toc="include" removeInRFC="false" pn="section-3">
      <name slugifiedName="name-quotas">Quotas</name>
      <t indent="0" pn="section-3-1">Servers <bcp14>SHOULD</bcp14> impose quotas on Sieve scripts to prevent
      malicious users from exceeding available storage.
      Administration of such quotas is outside of the scope of this
      specification; however, <xref target="RFC9425" format="default" sectionFormat="of" derivedContent="RFC9425"/> defines a data
      model for users to obtain quota details over JMAP.</t>
      <t indent="0" pn="section-3-2">The mechanism for handling SieveScript requests that would place
      a user over a quota setting is discussed in <xref target="set" format="default" sectionFormat="of" derivedContent="Section 2.4"/>.
      </t>
    </section>
    <section anchor="vacation" numbered="true" toc="include" removeInRFC="false" pn="section-4">
      <name slugifiedName="name-compatibility-with-jmap-vac">Compatibility with JMAP Vacation Response</name>
      <t indent="0" pn="section-4-1"><xref target="RFC8621" section="8" format="default" sectionFormat="of" derivedLink="https://rfc-editor.org/rfc/rfc8621#section-8" derivedContent="RFC8621"/> defines a
      "VacationResponse" object to represent an autoresponder to
      incoming email messages.
      Servers that implement the VacationResponse as a Sieve script
      that resides among other user scripts are subject to the
      following requirements:

      </t>
      <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-4-2">
        <li pn="section-4-2.1">
          <bcp14>MUST</bcp14> allow the VacationResponse Sieve script to be fetched
        by the <xref target="get" format="default" sectionFormat="of" derivedContent="Section 2.3">SieveScript/get method</xref>.
        </li>
        <li pn="section-4-2.2">
          <bcp14>MUST</bcp14> allow the VacationResponse Sieve script to be
        activated or deactivated via the "onSuccessActivateScript" argument to
        the <xref target="set" format="default" sectionFormat="of" derivedContent="Section 2.4">SieveScript/set method</xref>.
        </li>
        <li pn="section-4-2.3">
          <bcp14>MUST NOT</bcp14> allow the VacationResponse Sieve script to be
        destroyed or have its content updated by the
        <xref target="set" format="default" sectionFormat="of" derivedContent="Section 2.4">SieveScript/set method</xref>.
        Any such request <bcp14>MUST</bcp14> be rejected with a "forbidden" SetError.
        A "description" property <bcp14>MAY</bcp14> be present with an explanation
        that the script can only be modified by a VacationResponse/set
        method.
        </li>
      </ul>
    </section>
    <section anchor="security" numbered="true" toc="include" removeInRFC="false" pn="section-5">
      <name slugifiedName="name-security-considerations">Security Considerations</name>
      <t indent="0" pn="section-5-1">All security considerations discussed in
      <xref target="RFC8620" format="default" sectionFormat="of" derivedContent="RFC8620">JMAP</xref>
      and <xref target="RFC5228" format="default" sectionFormat="of" derivedContent="RFC5228">Sieve</xref>
      apply to this specification.</t>
      <t indent="0" pn="section-5-2">Additionally, implementations <bcp14>MUST</bcp14> treat Sieve script content
      as untrusted data.  As such, script parsers <bcp14>MUST</bcp14> fail gracefully
      in the face of syntactically invalid or malicious content and
      <bcp14>MUST</bcp14> be prepared to deal with resource exhaustion (e.g.,
      allocation of enormous strings, lists, or command blocks).
      </t>
    </section>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-6">
      <name slugifiedName="name-iana-considerations">IANA Considerations</name>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-6.1">
        <name slugifiedName="name-jmap-capability-registratio">JMAP Capability Registration for "sieve"</name>
        <t indent="0" pn="section-6.1-1">IANA has registered "sieve" in the "JMAP Capabilities" registry as follows:
        </t>
        <dl spacing="normal" indent="3" newline="false" pn="section-6.1-2">
          <dt pn="section-6.1-2.1">Capability Name:</dt>
          <dd pn="section-6.1-2.2">
            <tt>urn:ietf:params:jmap:sieve</tt></dd>
          <dt pn="section-6.1-2.3">Reference:</dt>
          <dd pn="section-6.1-2.4">RFC 9661</dd>
          <dt pn="section-6.1-2.5">Intended Use:</dt>
          <dd pn="section-6.1-2.6">common</dd>
          <dt pn="section-6.1-2.7">Change Controller:</dt>
          <dd pn="section-6.1-2.8">IETF</dd>
          <dt pn="section-6.1-2.9">Security and Privacy Considerations:</dt>
          <dd pn="section-6.1-2.10">RFC 9661,
        <xref target="security" format="default" sectionFormat="of" derivedContent="Section 5"/></dd>
        </dl>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-6.2">
        <name slugifiedName="name-jmap-data-type-registration">JMAP Data Type  Registration for "SieveScript"</name>
        <t indent="0" pn="section-6.2-1">IANA has registered "SieveScript" in the "JMAP Data Types" registry as follows:
        </t>
        <dl spacing="normal" indent="3" newline="false" pn="section-6.2-2">
          <dt pn="section-6.2-2.1">Type Name:</dt>
          <dd pn="section-6.2-2.2">
            <tt>SieveScript</tt></dd>
          <dt pn="section-6.2-2.3">Can Reference Blobs:</dt>
          <dd pn="section-6.2-2.4">Yes</dd>
          <dt pn="section-6.2-2.5">Can Use for State Change:</dt>
          <dd pn="section-6.2-2.6">Yes</dd>
          <dt pn="section-6.2-2.7">Capability:</dt>
          <dd pn="section-6.2-2.8">
            <tt>urn:ietf:params:jmap:sieve</tt></dd>
          <dt pn="section-6.2-2.9">Reference:</dt>
          <dd pn="section-6.2-2.10">RFC 9661</dd>
        </dl>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-6.3">
        <name slugifiedName="name-jmap-error-codes-registry">JMAP Error Codes Registry</name>
        <t indent="0" pn="section-6.3-1">
          IANA has registered the following two new error codes in the
          "JMAP Error Codes" registry, as defined in
          <xref target="RFC8620" format="default" sectionFormat="of" derivedContent="RFC8620"/>.
        </t>
        <section numbered="true" toc="include" removeInRFC="false" pn="section-6.3.1">
          <name slugifiedName="name-invalidsieve">invalidSieve</name>
          <dl spacing="normal" indent="3" newline="false" pn="section-6.3.1-1">
            <dt pn="section-6.3.1-1.1">JMAP Error Code:</dt>
            <dd pn="section-6.3.1-1.2">invalidSieve</dd>
            <dt pn="section-6.3.1-1.3">Intended Use:</dt>
            <dd pn="section-6.3.1-1.4">common</dd>
            <dt pn="section-6.3.1-1.5">Change Controller:</dt>
            <dd pn="section-6.3.1-1.6">IETF</dd>
            <dt pn="section-6.3.1-1.7">Reference:</dt>
            <dd pn="section-6.3.1-1.8">RFC 9661, <xref target="set" format="default" sectionFormat="of" derivedContent="Section 2.4"/></dd>
            <dt pn="section-6.3.1-1.9">Description:</dt>
            <dd pn="section-6.3.1-1.10">The SieveScript violates the
          <xref target="RFC5228" format="default" sectionFormat="of" derivedContent="RFC5228">Sieve grammar</xref>, and/or one
          or more extensions mentioned in the script's "require"
          statement(s) are not supported by the Sieve interpreter.</dd>
          </dl>
        </section>
        <section numbered="true" toc="include" removeInRFC="false" pn="section-6.3.2">
          <name slugifiedName="name-sieveisactive">sieveIsActive</name>
          <dl spacing="normal" indent="3" newline="false" pn="section-6.3.2-1">
            <dt pn="section-6.3.2-1.1">JMAP Error Code:</dt>
            <dd pn="section-6.3.2-1.2">sieveIsActive</dd>
            <dt pn="section-6.3.2-1.3">Intended Use:</dt>
            <dd pn="section-6.3.2-1.4">common</dd>
            <dt pn="section-6.3.2-1.5">Change Controller:</dt>
            <dd pn="section-6.3.2-1.6">IETF</dd>
            <dt pn="section-6.3.2-1.7">Reference:</dt>
            <dd pn="section-6.3.2-1.8">RFC 9661, <xref target="set" format="default" sectionFormat="of" derivedContent="Section 2.4"/></dd>
            <dt pn="section-6.3.2-1.9">Description:</dt>
            <dd pn="section-6.3.2-1.10">The client tried to destroy the active
          SieveScript.</dd>
          </dl>
        </section>
      </section>
    </section>
  </middle>
  <back>
    <references pn="section-7">
      <name slugifiedName="name-references">References</name>
      <references pn="section-7.1">
        <name slugifiedName="name-normative-references">Normative References</name>
        <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119" quoteTitle="true" derivedAnchor="RFC2119">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <author fullname="S. Bradner" initials="S." surname="Bradner"/>
            <date month="March" year="1997"/>
            <abstract>
              <t indent="0">In many standards track documents several words are used to signify the requirements in the specification. These words are often capitalized. This document defines these words as they should be interpreted in IETF documents. This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="2119"/>
          <seriesInfo name="DOI" value="10.17487/RFC2119"/>
        </reference>
        <reference anchor="RFC3629" target="https://www.rfc-editor.org/info/rfc3629" quoteTitle="true" derivedAnchor="RFC3629">
          <front>
            <title>UTF-8, a transformation format of ISO 10646</title>
            <author fullname="F. Yergeau" initials="F." surname="Yergeau"/>
            <date month="November" year="2003"/>
            <abstract>
              <t indent="0">ISO/IEC 10646-1 defines a large character set called the Universal Character Set (UCS) which encompasses most of the world's writing systems. The originally proposed encodings of the UCS, however, were not compatible with many current applications and protocols, and this has led to the development of UTF-8, the object of this memo. UTF-8 has the characteristic of preserving the full US-ASCII range, providing compatibility with file systems, parsers and other software that rely on US-ASCII values but are transparent to other values. This memo obsoletes and replaces RFC 2279.</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="63"/>
          <seriesInfo name="RFC" value="3629"/>
          <seriesInfo name="DOI" value="10.17487/RFC3629"/>
        </reference>
        <reference anchor="RFC3986" target="https://www.rfc-editor.org/info/rfc3986" quoteTitle="true" derivedAnchor="RFC3986">
          <front>
            <title>Uniform Resource Identifier (URI): Generic Syntax</title>
            <author fullname="T. Berners-Lee" initials="T." surname="Berners-Lee"/>
            <author fullname="R. Fielding" initials="R." surname="Fielding"/>
            <author fullname="L. Masinter" initials="L." surname="Masinter"/>
            <date month="January" year="2005"/>
            <abstract>
              <t indent="0">A Uniform Resource Identifier (URI) is a compact sequence of characters that identifies an abstract or physical resource. This specification defines the generic URI syntax and a process for resolving URI references that might be in relative form, along with guidelines and security considerations for the use of URIs on the Internet. The URI syntax defines a grammar that is a superset of all valid URIs, allowing an implementation to parse the common components of a URI reference without knowing the scheme-specific requirements of every possible identifier. This specification does not define a generative grammar for URIs; that task is performed by the individual specifications of each URI scheme. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="66"/>
          <seriesInfo name="RFC" value="3986"/>
          <seriesInfo name="DOI" value="10.17487/RFC3986"/>
        </reference>
        <reference anchor="RFC5198" target="https://www.rfc-editor.org/info/rfc5198" quoteTitle="true" derivedAnchor="RFC5198">
          <front>
            <title>Unicode Format for Network Interchange</title>
            <author fullname="J. Klensin" initials="J." surname="Klensin"/>
            <author fullname="M. Padlipsky" initials="M." surname="Padlipsky"/>
            <date month="March" year="2008"/>
            <abstract>
              <t indent="0">The Internet today is in need of a standardized form for the transmission of internationalized "text" information, paralleling the specifications for the use of ASCII that date from the early days of the ARPANET. This document specifies that format, using UTF-8 with normalization and specific line-ending sequences. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5198"/>
          <seriesInfo name="DOI" value="10.17487/RFC5198"/>
        </reference>
        <reference anchor="RFC5228" target="https://www.rfc-editor.org/info/rfc5228" quoteTitle="true" derivedAnchor="RFC5228">
          <front>
            <title>Sieve: An Email Filtering Language</title>
            <author fullname="P. Guenther" initials="P." role="editor" surname="Guenther"/>
            <author fullname="T. Showalter" initials="T." role="editor" surname="Showalter"/>
            <date month="January" year="2008"/>
            <abstract>
              <t indent="0">This document describes a language for filtering email messages at time of final delivery. It is designed to be implementable on either a mail client or mail server. It is meant to be extensible, simple, and independent of access protocol, mail architecture, and operating system. It is suitable for running on a mail server where users may not be allowed to execute arbitrary programs, such as on black box Internet Message Access Protocol (IMAP) servers, as the base language has no variables, loops, or ability to shell out to external programs. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5228"/>
          <seriesInfo name="DOI" value="10.17487/RFC5228"/>
        </reference>
        <reference anchor="RFC5435" target="https://www.rfc-editor.org/info/rfc5435" quoteTitle="true" derivedAnchor="RFC5435">
          <front>
            <title>Sieve Email Filtering: Extension for Notifications</title>
            <author fullname="A. Melnikov" initials="A." role="editor" surname="Melnikov"/>
            <author fullname="B. Leiba" initials="B." role="editor" surname="Leiba"/>
            <author fullname="W. Segmuller" initials="W." surname="Segmuller"/>
            <author fullname="T. Martin" initials="T." surname="Martin"/>
            <date month="January" year="2009"/>
            <abstract>
              <t indent="0">Users go to great lengths to be notified as quickly as possible that they have received new mail. Most of these methods involve polling to check for new messages periodically. A push method handled by the final delivery agent gives users quicker notifications and saves server resources. This document does not specify the notification method, but it is expected that using existing instant messaging infrastructure such as Extensible Messaging and Presence Protocol (XMPP), or Global System for Mobile Communications (GSM) Short Message Service (SMS) messages will be popular. This document describes an extension to the Sieve mail filtering language that allows users to give specific rules for how and when notifications should be sent. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5435"/>
          <seriesInfo name="DOI" value="10.17487/RFC5435"/>
        </reference>
        <reference anchor="RFC6134" target="https://www.rfc-editor.org/info/rfc6134" quoteTitle="true" derivedAnchor="RFC6134">
          <front>
            <title>Sieve Extension: Externally Stored Lists</title>
            <author fullname="A. Melnikov" initials="A." surname="Melnikov"/>
            <author fullname="B. Leiba" initials="B." surname="Leiba"/>
            <date month="July" year="2011"/>
            <abstract>
              <t indent="0">The Sieve email filtering language can be used to implement email whitelisting, blacklisting, personal distribution lists, and other sorts of list matching. Currently, this requires that all members of such lists be hard-coded in the script itself. Whenever a member of a list is added or deleted, the script needs to be updated and possibly uploaded to a mail server.</t>
              <t indent="0">This document defines a Sieve extension for accessing externally stored lists -- lists whose members are stored externally to the script, such as using the Lightweight Directory Access Protocol (LDAP), the Application Configuration Access Protocol (ACAP), vCard Extensions to WebDAV (CardDAV), or relational databases. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6134"/>
          <seriesInfo name="DOI" value="10.17487/RFC6134"/>
        </reference>
        <reference anchor="RFC8174" target="https://www.rfc-editor.org/info/rfc8174" quoteTitle="true" derivedAnchor="RFC8174">
          <front>
            <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
            <author fullname="B. Leiba" initials="B." surname="Leiba"/>
            <date month="May" year="2017"/>
            <abstract>
              <t indent="0">RFC 2119 specifies common key words that may be used in protocol specifications. This document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the key words have the defined special meanings.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="8174"/>
          <seriesInfo name="DOI" value="10.17487/RFC8174"/>
        </reference>
        <reference anchor="RFC8620" target="https://www.rfc-editor.org/info/rfc8620" quoteTitle="true" derivedAnchor="RFC8620">
          <front>
            <title>The JSON Meta Application Protocol (JMAP)</title>
            <author fullname="N. Jenkins" initials="N." surname="Jenkins"/>
            <author fullname="C. Newman" initials="C." surname="Newman"/>
            <date month="July" year="2019"/>
            <abstract>
              <t indent="0">This document specifies a protocol for clients to efficiently query, fetch, and modify JSON-based data objects, with support for push notification of changes and fast resynchronisation and for out-of- band binary data upload/download.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8620"/>
          <seriesInfo name="DOI" value="10.17487/RFC8620"/>
        </reference>
        <reference anchor="RFC8621" target="https://www.rfc-editor.org/info/rfc8621" quoteTitle="true" derivedAnchor="RFC8621">
          <front>
            <title>The JSON Meta Application Protocol (JMAP) for Mail</title>
            <author fullname="N. Jenkins" initials="N." surname="Jenkins"/>
            <author fullname="C. Newman" initials="C." surname="Newman"/>
            <date month="August" year="2019"/>
            <abstract>
              <t indent="0">This document specifies a data model for synchronising email data with a server using the JSON Meta Application Protocol (JMAP). Clients can use this to efficiently search, access, organise, and send messages, and to get push notifications for fast resynchronisation when new messages are delivered or a change is made in another client.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8621"/>
          <seriesInfo name="DOI" value="10.17487/RFC8621"/>
        </reference>
      </references>
      <references pn="section-7.2">
        <name slugifiedName="name-informative-references">Informative References</name>
        <reference anchor="RFC5232" target="https://www.rfc-editor.org/info/rfc5232" quoteTitle="true" derivedAnchor="RFC5232">
          <front>
            <title>Sieve Email Filtering: Imap4flags Extension</title>
            <author fullname="A. Melnikov" initials="A." surname="Melnikov"/>
            <date month="January" year="2008"/>
            <abstract>
              <t indent="0">Recent discussions have shown that it is desirable to set different IMAP (RFC 3501) flags on message delivery. This can be done, for example, by a Sieve interpreter that works as a part of a Mail Delivery Agent.</t>
              <t indent="0">This document describes an extension to the Sieve mail filtering language for setting IMAP flags. The extension allows setting of both IMAP system flags and IMAP keywords. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5232"/>
          <seriesInfo name="DOI" value="10.17487/RFC5232"/>
        </reference>
        <reference anchor="RFC5463" target="https://www.rfc-editor.org/info/rfc5463" quoteTitle="true" derivedAnchor="RFC5463">
          <front>
            <title>Sieve Email Filtering: Ihave Extension</title>
            <author fullname="N. Freed" initials="N." surname="Freed"/>
            <date month="March" year="2009"/>
            <abstract>
              <t indent="0">This document describes the "ihave" extension to the Sieve email filtering language. The "ihave" extension provides a means to write scripts that can take advantage of optional Sieve features but can still run when those optional features are not available. The extension also defines a new error control command intended to be used to report situations where no combination of available extensions satisfies the needs of the script. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5463"/>
          <seriesInfo name="DOI" value="10.17487/RFC5463"/>
        </reference>
        <reference anchor="RFC5804" target="https://www.rfc-editor.org/info/rfc5804" quoteTitle="true" derivedAnchor="RFC5804">
          <front>
            <title>A Protocol for Remotely Managing Sieve Scripts</title>
            <author fullname="A. Melnikov" initials="A." role="editor" surname="Melnikov"/>
            <author fullname="T. Martin" initials="T." surname="Martin"/>
            <date month="July" year="2010"/>
            <abstract>
              <t indent="0">Sieve scripts allow users to filter incoming email. Message stores are commonly sealed servers so users cannot log into them, yet users must be able to update their scripts on them. This document describes a protocol "ManageSieve" for securely managing Sieve scripts on a remote server. This protocol allows a user to have multiple scripts, and also alerts a user to syntactically flawed scripts. [STANDARDS TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5804"/>
          <seriesInfo name="DOI" value="10.17487/RFC5804"/>
        </reference>
        <reference anchor="RFC9112" target="https://www.rfc-editor.org/info/rfc9112" quoteTitle="true" derivedAnchor="RFC9112">
          <front>
            <title>HTTP/1.1</title>
            <author fullname="R. Fielding" initials="R." role="editor" surname="Fielding"/>
            <author fullname="M. Nottingham" initials="M." role="editor" surname="Nottingham"/>
            <author fullname="J. Reschke" initials="J." role="editor" surname="Reschke"/>
            <date month="June" year="2022"/>
            <abstract>
              <t indent="0">The Hypertext Transfer Protocol (HTTP) is a stateless application-level protocol for distributed, collaborative, hypertext information systems. This document specifies the HTTP/1.1 message syntax, message parsing, connection management, and related security concerns.</t>
              <t indent="0">This document obsoletes portions of RFC 7230.</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="99"/>
          <seriesInfo name="RFC" value="9112"/>
          <seriesInfo name="DOI" value="10.17487/RFC9112"/>
        </reference>
        <reference anchor="RFC9404" target="https://www.rfc-editor.org/info/rfc9404" quoteTitle="true" derivedAnchor="RFC9404">
          <front>
            <title>JSON Meta Application Protocol (JMAP) Blob Management Extension</title>
            <author fullname="B. Gondwana" initials="B." role="editor" surname="Gondwana"/>
            <date month="August" year="2023"/>
            <abstract>
              <t indent="0">The JSON Meta Application Protocol (JMAP) base protocol (RFC 8620) provides the ability to upload and download arbitrary binary data via HTTP POST and GET on a defined endpoint. This binary data is called a "blob".</t>
              <t indent="0">This extension adds additional ways to create and access blobs by making inline method calls within a standard JMAP request.</t>
              <t indent="0">This extension also adds a reverse lookup mechanism to discover where blobs are referenced within other data types.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9404"/>
          <seriesInfo name="DOI" value="10.17487/RFC9404"/>
        </reference>
        <reference anchor="RFC9425" target="https://www.rfc-editor.org/info/rfc9425" quoteTitle="true" derivedAnchor="RFC9425">
          <front>
            <title>JSON Meta Application Protocol (JMAP) for Quotas</title>
            <author fullname="R. Cordier" initials="R." role="editor" surname="Cordier"/>
            <date month="June" year="2023"/>
            <abstract>
              <t indent="0">This document specifies a data model for handling quotas on accounts with a server using the JSON Meta Application Protocol (JMAP).</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9425"/>
          <seriesInfo name="DOI" value="10.17487/RFC9425"/>
        </reference>
      </references>
    </references>
    <section numbered="false" toc="include" removeInRFC="false" pn="section-appendix.a">
      <name slugifiedName="name-acknowledgments">Acknowledgments</name>
      <t indent="0" pn="section-appendix.a-1">The concepts in this document are based largely on those in
      <xref target="RFC5804" format="default" sectionFormat="of" derivedContent="RFC5804"/>. 
      The author would like to thank the authors of that document for
      providing both inspiration and some borrowed text for this
      document.</t>
      <t indent="0" pn="section-appendix.a-2">The author would also like to thank the following
      individuals for contributing their ideas and support for
      writing this specification: <contact fullname="Joris Baum"/>, <contact fullname="Mauro De Gennaro"/>,
      <contact fullname="Bron Gondwana"/>, <contact fullname="Neil Jenkins"/>, <contact fullname="Alexey Melnikov"/>, and <contact fullname="Ricardo Signes"/>.</t>
    </section>
    <section anchor="authors-addresses" numbered="false" removeInRFC="false" toc="include" pn="section-appendix.b">
      <name slugifiedName="name-authors-address">Author's Address</name>
      <author initials="K." surname="Murchison" fullname="Kenneth Murchison">
        <organization abbrev="Fastmail" showOnFrontPage="true">Fastmail US LLC</organization>
        <address>
          <postal>
            <street>1429 Walnut Street, Suite 1201</street>
            <city>Philadelphia</city>
            <region>PA</region>
            <code>19102</code>
            <country>United States of America</country>
          </postal>
          <email>murch@fastmailteam.com</email>
        </address>
      </author>
    </section>
  </back>
</rfc>
