[MORG] Updating morg-special-use with the latest comments

Barry Leiba <barryleiba@computer.org> Mon, 01 November 2010 06:47 UTC

Return-Path: <barryleiba@computer.org>
X-Original-To: morg@core3.amsl.com
Delivered-To: morg@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 8C5733A6821 for <morg@core3.amsl.com>; Sun, 31 Oct 2010 23:47:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -99.999
X-Spam-Level:
X-Spam-Status: No, score=-99.999 tagged_above=-999 required=5 tests=[BAYES_50=0.001, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zSMSX6u8KY0p for <morg@core3.amsl.com>; Sun, 31 Oct 2010 23:47:18 -0700 (PDT)
Received: from usaga02-in.huawei.com (usaga02-in.huawei.com [206.16.17.70]) by core3.amsl.com (Postfix) with ESMTP id A92023A687A for <morg@ietf.org>; Sun, 31 Oct 2010 23:47:18 -0700 (PDT)
Received: from huawei.com (localhost [127.0.0.1]) by usaga02-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTP id <0LB7008Q31IU3J@usaga02-in.huawei.com> for morg@ietf.org; Sun, 31 Oct 2010 23:47:18 -0700 (PDT)
Received: from BLeibaNY1 ([10.76.184.145]) by usaga02-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTPA id <0LB700CR61IO4L@usaga02-in.huawei.com> for morg@ietf.org; Sun, 31 Oct 2010 23:47:18 -0700 (PDT)
Date: Mon, 01 Nov 2010 14:47:12 +0800
From: Barry Leiba <barryleiba@computer.org>
To: morg@ietf.org
Message-id: <000001cb7990$a04b6be0$e0e243a0$@org>
MIME-version: 1.0
X-Mailer: Microsoft Office Outlook 12.0
Content-type: text/plain; charset="us-ascii"
Content-language: en-us
Content-transfer-encoding: 7bit
Thread-index: Act5jwRDQAcD5fVgS2K7d6qx10WKrQ==
Subject: [MORG] Updating morg-special-use with the latest comments
X-BeenThere: morg@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Messaging Organization <morg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/morg>, <mailto:morg-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/morg>
List-Post: <mailto:morg@ietf.org>
List-Help: <mailto:morg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/morg>, <mailto:morg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 01 Nov 2010 06:47:19 -0000

I have a new version of morg-special-use ready to submit.  There's just one
issue that I want to check the resolution on, one posted by Dan Keen here:  
  http://www.ietf.org/mail-archive/web/morg/current/msg00366.html

> This doesn't seem to cover the request in the room:
>
> Proposal: leave CREATE option, don't add any non-metadata way to add 
> special-use tag, define metadata way (registry) to add or change 
> special use tags (if you support METADATA, we will give a reserved 
> item for this function).  No objection in room; adopted.
>
> We've left CREATE (good), but there's no way to alter an existent 
> mailbox to become special use.

As I read Dan's note, he's not happy with the decision to leave this to
METADATA, and NOT to provide a way to change the special-use status of an
existing mailbox, other than through METADATA.  Still, that was the
consensus.

Is that correct?

Assuming that it is, I have the following proposed text to add to
morg-special-use, related to using METADATA here:

4.  IMAP METADATA entry for special-use flags

   If a server supports this extension and the METADATA extension
   [RFC5464], it SHOULD tie the special-use flags for a mailbox to its
   metadata entry "/shared/specialuse".  The value of /shared/specialuse
   is either NIL (if there are no special-use flags for that mailbox) or
   a space-separated list of special-use flags, presented the same way
   they would be presented in the LIST command response.

   Such a server MAY allow the setting of special-use flags through the
   METADATA mechanisms, thereby allowing clients to change the special
   uses of existing mailboxes.  These changes might have side effects,
   as the server automatically adjusts the special uses accordingly,
   just as it might do with CREATE USE, above.  See Section 5.4 for an
   example.

   A server that supports this MUST check the validity of changes to the
   special-use flags that are done through the metadata.  It MUST NOT
   allow a client to set invalid or unsupported flags, nor to create
   conflicting or otherwise invalid situations.


And the example here:

5.4.  Example of using IMAP METADATA to manipulate special-use flags

   This example shows how IMAP METADATA can be used to manipulate
   special-use flags, if the operation is supported on the server.

     ==> Starting point:
     C: t1 LIST "" "%" RETURN (SPECIAL-USE)
     S: * LIST (\Sent) "/" SentMail
     S: * LIST (\Drafts) "/" MyDrafts
     S: * LIST () "/" SavedDrafts
     S: * LIST (\Trash) "/" Trash
     S: t1 OK done

     ==> Demonstrate the connection:
     C: t2 GETMETADATA "MyDrafts" /shared/specialuse
     S: * METADATA "MyDrafts" (/shared/specialuse "\Drafts")
     S: t2 OK done

     ==> Set new use for SavedDrafts; MyDrafts changes automatically:
     C: t3 SETMETADATA "SavedDrafts" (/shared/specialuse "\Drafts")
     S: * METADATA "MyDrafts" (/shared/specialuse NIL)
     S: t3 OK SETMETADATA complete

     ==> Remove special use for SentMail:
     C: t4 SETMETADATA "SentMail" (/shared/specialuse NIL)
     S: t4 OK SETMETADATA complete

     ==> Check the results:
     C: t5 LIST "" "%" RETURN (SPECIAL-USE)
     S: * LIST () "/" SentMail
     S: * LIST () "/" MyDrafts
     S: * LIST (\Drafts) "/" SavedDrafts
     S: * LIST (\Trash) "/" Trash
     S: t5 OK done


Sanity check: does all that look OK?  (I have also added a reference to the
METADATA RFC, and a registration for the metadata entry to the IANA
Considerations section.)

Shall I post a final draft with this, along with the other changes?

Barry