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

Document Type Active Internet-Draft (jmap WG)
Author Kenneth Murchison 
Last updated 2020-11-18 (latest revision 2020-11-02)
Stream IETF
Intended RFC status Proposed Standard
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 Yes
Telechat date
Responsible AD (None)
Send notices to (None)
JMAP                                                        K. Murchison
Internet-Draft                                                  Fastmail
Intended status: Standards Track                        November 2, 2020
Expires: May 6, 2021

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

Abstract

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

Open Issues

   o  Should we introduce an "isIncluded" or "isInUse" filter/sort
      condition for the /query method to locate scripts which are
      included by others?

   o  Do we need any (rate) limits for /test?

   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 May 6, 2021.

Murchison                  Expires May 6, 2021                  [Page 1]
Internet-Draft                 JMAP Sieve                  November 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 . . . . . . . . . . .   4
       1.3.1.  urn:ietf:params:jmap:sieve  . . . . . . . . . . . . .   4
   2.  Sieve Scripts . . . . . . . . . . . . . . . . . . . . . . . .   5
     2.1.  SieveScript/get . . . . . . . . . . . . . . . . . . . . .   6
     2.2.  SieveScript/set . . . . . . . . . . . . . . . . . . . . .   6
       2.2.1.  Examples  . . . . . . . . . . . . . . . . . . . . . .   8
     2.3.  SieveScript/query . . . . . . . . . . . . . . . . . . . .  14
     2.4.  SieveScript/validate  . . . . . . . . . . . . . . . . . .  14
     2.5.  SieveScript/test  . . . . . . . . . . . . . . . . . . . .  15
       2.5.1.  Example . . . . . . . . . . . . . . . . . . . . . . .  18
   3.  Security Considerations . . . . . . . . . . . . . . . . . . .  21
   4.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .  21
     4.1.  JMAP Capability Registration for "sieve"  . . . . . . . .  21
     4.2.  JMAP Error Codes Registry . . . . . . . . . . . . . . . .  21
       4.2.1.  invalidScript . . . . . . . . . . . . . . . . . . . .  21
       4.2.2.  scriptIsActive  . . . . . . . . . . . . . . . . . . .  21
   5.  Acknowledgments . . . . . . . . . . . . . . . . . . . . . . .  22
   6.  References  . . . . . . . . . . . . . . . . . . . . . . . . .  22
     6.1.  Normative References  . . . . . . . . . . . . . . . . . .  22
     6.2.  Informative References  . . . . . . . . . . . . . . . . .  23
   Appendix A.  Change History (To be removed by RFC Editor before
                publication) . . . . . . . . . . . . . . . . . . . .  23
   Author's Address  . . . . . . . . . . . . . . . . . . . . . . . .  25

Murchison                  Expires May 6, 2021                  [Page 2]
Internet-Draft                 JMAP Sieve                  November 2020

1.  Introduction

   JMAP [RFC8620] (JSON Meta Application Protocol) 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 aims to provide a consistent interface to different
   data types.

   This specification defines a data model for managing Sieve [RFC5228]
   scripts on a server using JMAP.  The data model is designed to allow
Show full document text