JMAP for Sieve Scripts
draft-ietf-jmap-sieve-01

Document Type Active Internet-Draft (jmap WG)
Last updated 2020-09-22
Stream IETF
Intended RFC status (None)
Formats plain text xml pdf htmlized (tools) htmlized bibtex
Stream WG state WG Document
Document shepherd No shepherd assigned
IESG IESG state I-D Exists
Consensus Boilerplate Unknown
Telechat date
Responsible AD (None)
Send notices to (None)
JMAP                                                        K. Murchison
Internet-Draft                                                  Fastmail
Intended status: Standards Track                      September 22, 2020
Expires: March 26, 2021

                         JMAP for Sieve Scripts
                        draft-ietf-jmap-sieve-01

Abstract

   This document specifies a data model for managing Sieve scripts on a
   server using JMAP.

Open Issues

   o  Do we need/want both "content" and "blobId" in the SieveScript
      object?  It may be simpler to have just one way of specifying
      content and "blobId" is more versatile and doesn't require JSON-
      encoding of the content.  Furthermore, use of the forthcoming(?)
      Blob/set method would avoid the extra roundtrip of having to
      upload the blob first.

   o  The strawman for SieveScript/test only uses blobIds.  Will this
      have to change once the issue regarding content/blobId in
      SieveScript is resolved?

   o  Should ":fcc" and associated arguments (e.g., ":flags",
      ":create":, etc) reported in the /test response be in their own
      "fcc" sub-object rather than listed inline with the rest of the
      arguments for the action?

Status of This Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   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 March 26, 2021.

Murchison                Expires March 26, 2021                 [Page 1]
Internet-Draft                 JMAP Sieve                 September 2020

Copyright Notice

   Copyright (c) 2020 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 Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   3
     1.1.  Notational Conventions  . . . . . . . . . . . . . . . . .   3
     1.2.  Terminology . . . . . . . . . . . . . . . . . . . . . . .   3
     1.3.  Addition to the Capabilities Object . . . . . . . . . . .   3
       1.3.1.  urn:ietf:params:jmap:sieve  . . . . . . . . . . . . .   3
   2.  Sieve Scripts . . . . . . . . . . . . . . . . . . . . . . . .   5
     2.1.  SieveScript/get . . . . . . . . . . . . . . . . . . . . .   6
     2.2.  SieveScript/set . . . . . . . . . . . . . . . . . . . . .   6
     2.3.  SieveScript/query . . . . . . . . . . . . . . . . . . . .   8
     2.4.  SieveScript/validate  . . . . . . . . . . . . . . . . . .   9
     2.5.  SieveScript/test  . . . . . . . . . . . . . . . . . . . .  10
       2.5.1.  Example . . . . . . . . . . . . . . . . . . . . . . .  13
   3.  Security Considerations . . . . . . . . . . . . . . . . . . .  16
   4.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .  16
     4.1.  JMAP Capability Registration for "sieve"  . . . . . . . .  16
     4.2.  JMAP Error Codes Registry . . . . . . . . . . . . . . . .  16
       4.2.1.  scriptNameExists  . . . . . . . . . . . . . . . . . .  16
       4.2.2.  tooManyScripts  . . . . . . . . . . . . . . . . . . .  16
       4.2.3.  invalidScript . . . . . . . . . . . . . . . . . . . .  17
       4.2.4.  scriptIsActive  . . . . . . . . . . . . . . . . . . .  17
   5.  Acknowledgments . . . . . . . . . . . . . . . . . . . . . . .  17
   6.  References  . . . . . . . . . . . . . . . . . . . . . . . . .  17
     6.1.  Normative References  . . . . . . . . . . . . . . . . . .  18
     6.2.  Informative References  . . . . . . . . . . . . . . . . .  19
   Appendix A.  Change History (To be removed by RFC Editor before
                publication) . . . . . . . . . . . . . . . . . . . .  19
   Author's Address  . . . . . . . . . . . . . . . . . . . . . . . .  19

Murchison                Expires March 26, 2021                 [Page 2]
Internet-Draft                 JMAP Sieve                 September 2020

1.  Introduction

   JMAP ([RFC8620] - JSON Meta Application Protocol) is a generic
Show full document text