Re: [Jmap] Proposal: split sharing mechanism from JMAP Calendars spec

Neil Jenkins <neilj@fastmailteam.com> Tue, 05 January 2021 03:19 UTC

Return-Path: <neilj@fastmailteam.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 CE3673A0DE6 for <jmap@ietfa.amsl.com>; Mon, 4 Jan 2021 19:19:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.119
X-Spam-Level:
X-Spam-Status: No, score=-2.119 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, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=fastmailteam.com header.b=oOOlPDd0; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=rjv+Gwfx
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 9q74x1F75bGE for <jmap@ietfa.amsl.com>; Mon, 4 Jan 2021 19:19:52 -0800 (PST)
Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9AD573A0DE5 for <jmap@ietf.org>; Mon, 4 Jan 2021 19:19:52 -0800 (PST)
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 82BFB7F9; Mon, 4 Jan 2021 22:19:51 -0500 (EST)
Received: from imap7 ([10.202.2.57]) by compute3.internal (MEProxy); Mon, 04 Jan 2021 22:19:51 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= fastmailteam.com; h=mime-version:message-id:in-reply-to :references:date:from:to:subject:content-type; s=fm1; bh=mmF9lrB iyeLnxjUsDBwsi8+Zh14bQQXC7FFQF1VGG+o=; b=oOOlPDd0om4GEG3omlwKUq4 btoXl7hAfjHcnn8ODpYJHq7hTQYQKzPzNe5o99GxWOrI4ZKhHNmFzU/q5Ghyg/XC HhDmoJ6taKIBFPX8Z9gtHa8Ltce8PyXq5Pw905RMEVuR5DGs3VnCHtzpVCvWLoK8 Rx1iCUkbX1upCnOk/OkiosplwevRz4tty+sYRGRbS6UrSrkF4C0zAsEkqHxrILPo n4a3U4gZdsxdSn5Q5tErSd6pqTuCEvB0Sd5OKVi/zXLLfo+TLAn80uETU2UvX9s8 3kju18mBiArlH9gkZ0b61yqhxq5fHw/zAzOiadS68slMvLKqlJytDNjj1J1jaqQ= =
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=mmF9lr BiyeLnxjUsDBwsi8+Zh14bQQXC7FFQF1VGG+o=; b=rjv+GwfxVtJeqHhBR1B2LT ROS26/Ft12ZsK7llVqHjbvkuxVRDHGpMFCVcWo98ayzJE+2/FcizFqmwjHneoj7B xUiSskFW4lJ9FeWS83oMBz9nXZSqWUZtHaBioSBqvGcxpaJaABGiMN63PQy5tnrN WMXTE0EnAiM75/BY20yDXTnl3gnxJ0ZLpX1gd5Hd9LwY8hsKMLK0fvY7/8VikQpH SYd4NBKWEuSBaAVAKACnKkA5BZn2JXns3UF0F/IsoqDWYkyvDrhRRA7sRJDZN6c0 WfnvWHNSm7oa/UhlM15WocOx/MmlGdF0NFJadwZc47E8z93wK7mjTJRoqb8/9Y+A ==
X-ME-Sender: <xms:1trzX4UkkRrtwB-SpCTHhZiGhbP-oyXuA6jhgCpBCjY8nsFoSUPAgQ> <xme:1trzX8kmLv8MNXyflLW3o1kT03euaPWeceJxabJ4HRhr4AgFDMqNNauLQH49Oobs0 r_my4X0TBp2ww>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdefgedgheejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesrgdtreerreerjeenucfhrhhomhepfdfpvghi lhculfgvnhhkihhnshdfuceonhgvihhljhesfhgrshhtmhgrihhlthgvrghmrdgtohhmqe enucggtffrrghtthgvrhhnpeehuefhudejtdeiveekvdfhfffgleeflefhfeekhefhkeel kefhfeeufeevffejieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehnvghilhhjsehfrghsthhmrghilhhtvggrmhdrtghomh
X-ME-Proxy: <xmx:1trzX8ZxKyRSIp3CrbzGzbo9bIx4toAAzKLegl8_ky7Ui1sUtL5Leg> <xmx:1trzX3XBIkpB0md8rmJC49f3JoekHBWFR28qTnsCCKUe77XQpzwc9g> <xmx:1trzXylBu9T7ojyLHNEj2Z2sccLMPOVFJL3Tm0FJQ4GMG-PP4kNMFw> <xmx:19rzX8QJ23DfDEFfl3CrlD3Ie906pWckkj0_Ja7AEOeqe_a9jSg8HA>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id 663861802D3; Mon, 4 Jan 2021 22:19:50 -0500 (EST)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.3.1-61-gb52c239-fm-20201210.001-gb52c2396
Mime-Version: 1.0
Message-Id: <3fcec699-8229-4960-9f93-411e5f07d18f@www.fastmail.com>
In-Reply-To: <ddb1ba56-46ca-f8bf-8967-77f7f0526009@isode.com>
References: <1e765f38-5a7a-4498-ab6a-8361671713f5@beta.fastmail.com> <ddb1ba56-46ca-f8bf-8967-77f7f0526009@isode.com>
Date: Tue, 05 Jan 2021 14:19:49 +1100
From: Neil Jenkins <neilj@fastmailteam.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>, IETF JMAP Mailing List <jmap@ietf.org>
Content-Type: multipart/alternative; boundary="0f80f26449854b8b9a467d1775f1a95b"
Archived-At: <https://mailarchive.ietf.org/arch/msg/jmap/R_PENdpncqlQZLwQVMF9s3WMStw>
Subject: Re: [Jmap] Proposal: split sharing mechanism from JMAP Calendars spec
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, 05 Jan 2021 03:19:54 -0000

On Thu, 17 Dec 2020, at 21:42, Alexey Melnikov wrote:
> CalendarShareNotification is referencing CalendarRights. The latter looks rather calendar specific.
> If you can generalize CalendarRights, what you suggest above looks like a good direction.

Yes, we can generalise this as an object that is of type `String[Boolean]`, where the keys are the names of the rights and the values whether you have that right. The set of rights will be data type dependent, but the shape of the data is the same.

Neil.