[Jmap] JMAP SieveScript/test

Ken Murchison <murch@fastmail.com> Tue, 23 March 2021 20:31 UTC

Return-Path: <murch@fastmail.com>
X-Original-To: jmap@ietfa.amsl.com
Delivered-To: jmap@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9173A3A150A for <jmap@ietfa.amsl.com>; Tue, 23 Mar 2021 13:31:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.1
X-Spam-Level:
X-Spam-Status: No, score=-1.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FROM_FMBLA_NEWDOM14=0.999, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=fastmail.com header.b=AozsYy9g; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=biwJSZXP
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jH77_ohBHCKJ for <jmap@ietfa.amsl.com>; Tue, 23 Mar 2021 13:31:39 -0700 (PDT)
Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4AD003A1506 for <jmap@ietf.org>; Tue, 23 Mar 2021 13:31:39 -0700 (PDT)
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 484D7FDC for <jmap@ietf.org>; Tue, 23 Mar 2021 16:31:38 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 23 Mar 2021 16:31:38 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= to:from:subject:message-id:date:mime-version:content-type :content-transfer-encoding; s=fm2; bh=wdQ7ECBur7XyNv8q+XMFJMnnHB TaQmh8G96c/ZMaF18=; b=AozsYy9gJfltwH98F/P7Cz2QQJbQ5jKv9qzchndp6f E/GI/1QHFCbmmj44ocCRpuxEQOovgB04iBODUfI1yEuRqoofYOXzh1y5zwNn2rc3 vXiOLKIPADTBmJnCcpvWy5zoQvlUGuOlXZ71jYaXPzPvsz01iUgT4GSnEiehu+ED iW1amdUUB2c/nIoMpYOSctruv/xdkA2wEF9xR7JcalxUkhw5EBGhPtyXvTBzarAZ mL1d7pCc7zrgXm7UmVniNor5SqnOzVGIwc162HCP9PjlpVdab5T8Z1ali/vRVbJQ gVW9mH2Gdcmdvpt4etvbTeYImdmIpd+a+zsdczaYHNDg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=wdQ7EC Bur7XyNv8q+XMFJMnnHBTaQmh8G96c/ZMaF18=; b=biwJSZXPwkvo74DtQtacmT KXHuxTmH2XCZ/bLyMfhsymg12Jgl5AywF0AbXdBjTRYISjRzgj1kj6xNC7qP9s8t eAjkQ/aBnNb+ngI8L+vpt6lrtf+UbLst81UPHTPB6L3CNReYmja0c3GspjmMDqiR akJmGTacnb80tk/t8Th0k2mcucwWJ25bupShbW3T2QJc1KjCapyhttx9drNuWTLA eQhUDENJexUwdoHsdr9y733BxxY1F2LWzTQOTc//tmuee+OLEz8LeUrwRR/8joXL LAnPl/YCz68Rvpu/9BuaxS5zQsmi9D+7Of1rJgx8+vHi74XFyj4i007yvlLnj9XA ==
X-ME-Sender: <xms:KVBaYF6hZfLfyaQ_P_EO2H5sp27S-l1WTmd9k9VkCMMRVW1uKy4tBg> <xme:KVBaYC5F3hKg-_vJqJipMee4gfndZFevDoBLIfba4Qi1rAOM7Xr5YxokLeDnEJrLd cXHX_zAyF36hQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudegiedgudeflecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepvffhuffkffgfgggtgfesthekre dttdefjeenucfhrhhomhepmfgvnhcuofhurhgthhhishhonhcuoehmuhhrtghhsehfrghs thhmrghilhdrtghomheqnecuggftrfgrthhtvghrnhepheehgfduffegffduhfehtdeuhf ejvdetveffvdektdejhfekudfgueevhffgtdelnecuffhomhgrihhnpehivghtfhdrohhr ghenucfkphepjeegrdejjedrkeehrddvhedtnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhurhgthhesfhgrshhtmhgrihhlrdgtohhm
X-ME-Proxy: <xmx:KVBaYMcgk1yYIs20RIeeR2vkDfHwBjit9Sc2mOrGihGpN3KnV5qiog> <xmx:KVBaYOIqb6gtrTLRtNopNDjEmxwwLqA-lXp3jfTRuKMjon6Ks9M-nQ> <xmx:KVBaYJISeFhEzosGfLM42Ng_jz4Dl8CufM2jwoYRxBb4DkSjmPwmQQ> <xmx:KVBaYOWZOZ_Jrjhv4KPDKtW1fq5tvxg09O8SNlMECwNA-YpYzD7fHg>
Received: from [192.168.1.22] (cpe-74-77-85-250.buffalo.res.rr.com [74.77.85.250]) by mail.messagingengine.com (Postfix) with ESMTPA id 9AC0F240422 for <jmap@ietf.org>; Tue, 23 Mar 2021 16:31:37 -0400 (EDT)
To: jmap@ietf.org
From: Ken Murchison <murch@fastmail.com>
Message-ID: <ac3500ef-3432-e5ff-3d94-f98b8954f171@fastmail.com>
Date: Tue, 23 Mar 2021 16:31:37 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/jmap/Z914O6wqEGT2pyzjVMJziWdrByQ>
Subject: [Jmap] JMAP SieveScript/test
X-BeenThere: jmap@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: JSON Message Access Protocol <jmap.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jmap>, <mailto:jmap-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jmap/>
List-Post: <mailto:jmap@ietf.org>
List-Help: <mailto:jmap-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jmap>, <mailto:jmap-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Mar 2021 20:31:44 -0000

All,

At IETF 110 I presented the format of the SIeveScript/test response that 
is currently documented in 
https://tools.ietf.org/html/draft-ietf-jmap-sieve-04#section-2.5 
<https://tools.ietf.org/html/draft-ietf-jmap-sieve-04#section-2.5> as 
well as a possible alternative format.  It was determined during the 
session that I should ask the list which of the two formats is preferred 
and take proposals any any other possible formats.

The current format is a tuple with three elements, representation as a 
JSON array:

      [
        "vacation",
        {
          ":fcc": "INBOX.Sent",
          ":flags": [ "\\answered" ],
          ":subject": "Auto: test email",
          ":from": "ken@example.com"
        },
        [ “Gone fishing.” ]
      ]


The alternative format is a JSON object with three named elements:

        {
          “type”: "vacation",
          “taggedArgs”: {
                          ":fcc": "INBOX.Sent",
                          ":flags": [ "\\answered" ],
                          ":subject": "Auto: test email",
                          ":from": "ken@example.com"
                        },
          “positionalArgs”: [ “Gone fishing.” ]
        }


Please respond with your preference or any other thoughts.

-- 
Kenneth Murchison
Senior Software Developer
Fastmail US LLC