Re: [Extra] imap4rev2: disallow "RENAME INBOX"

Brandon Long <blong@google.com> Fri, 09 November 2018 19:26 UTC

Return-Path: <blong@google.com>
X-Original-To: extra@ietfa.amsl.com
Delivered-To: extra@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5855B130DC3 for <extra@ietfa.amsl.com>; Fri, 9 Nov 2018 11:26:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.501
X-Spam-Level:
X-Spam-Status: No, score=-17.501 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.com
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 IQmT92Rh3F5Q for <extra@ietfa.amsl.com>; Fri, 9 Nov 2018 11:26:02 -0800 (PST)
Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 72A6312426A for <extra@ietf.org>; Fri, 9 Nov 2018 11:26:02 -0800 (PST)
Received: by mail-yb1-xb36.google.com with SMTP id g192-v6so1508375ybf.3 for <extra@ietf.org>; Fri, 09 Nov 2018 11:26:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NWvdTTcRNVLZMjo6uMyyK24XU0/ia3ejL1HQL3aZ2w4=; b=DOFuZ7PWbton668zxzJIQEqTAppCzT+FE3E5gyNlEw1he833nTvuHjGvjL3zysj3DR 7unUj5JaHCuUPA96jcR7VL3n05eAvaN1Ks7s5DTqpwG4RsfOBQpNeaf8Ly4TDcyZhSaz vNaOK8tZQmNMkem4XRXnCZIP5XtucNWnf8XnOlkym8BARo3aMSL07SpU5Xj6qV7Kt6BU SXh/RNaUzaEJy9r7OMm7hHsMgQsHl/2MST5x9hJEbd8L5sT70a7xKCWcMisQI90mh61S PPAH3jkSdPBMuKBrHJrNWEQCnchJN+h1f486dpArBZGWkW2etPT8UVcpkfflFccR9LtH veqQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NWvdTTcRNVLZMjo6uMyyK24XU0/ia3ejL1HQL3aZ2w4=; b=uKChkWGvVf5n4DDViWq4I+ZahjidA4LN6zGpSSiHQej/A6EhHD6vvGMbVbkRay1Lp7 cIRpyOz3HzZe2k7Nn+8HEhrVy7+ij30sgBJEMbkqflGS67eoVwmyy8QtzjKbpr4hCzLn yaWn0JzzyMSI10X8BQp9geI8MjlU9Nwl0xaKsB9QyzFcJX4fykx+TzqqHy8weE2vyZ3U 5BeEkkSCXsDaHNy5GaR6QiN0lusa47ppFP6RkBa/4TAk/FtqfKvC6dtY4bOSCEPnraXJ PwXEcsNbyPdJMSDdlWtgmk+zYTeGyhRzel+CIktSoZBhNJDWKUx+7FR/ueHtIRS7OKgC H/Nw==
X-Gm-Message-State: AGRZ1gImrfaMfyea9u1di6tbRqSPfuVfrYnhvNHl395ktO0j4iymh5rJ c7UF9EybdYB2TkOJhSHIHUwyrI7FCKfpEBnBVl6izdk=
X-Google-Smtp-Source: AJdET5f+wucZwZVGaiIKRTOeO90isvPsZmhJVwtbJvcM7VPp/TtOGNvgB1yem8qXcR8jhrbX33H/QESsWhdeNG+ZnVk=
X-Received: by 2002:a25:3384:: with SMTP id z126-v6mr10022096ybz.444.1541791561106; Fri, 09 Nov 2018 11:26:01 -0800 (PST)
MIME-Version: 1.0
References: <b8dc4684-e911-43b8-966e-fc845f2a515f@sloti7d1t02> <B43C5178-C640-44B9-9FEA-C5FF14DBD538@iki.fi> <e9d5c860-937c-44e5-805e-0d1d7373d32a@sloti7d1t02>
In-Reply-To: <e9d5c860-937c-44e5-805e-0d1d7373d32a@sloti7d1t02>
From: Brandon Long <blong@google.com>
Date: Fri, 09 Nov 2018 11:25:47 -0800
Message-ID: <CABa8R6tVNxB0POhCoMX8jJuFysfP1=PAPiHfys=G=g01vfWLpg@mail.gmail.com>
To: Bron Gondwana <brong@fastmailteam.com>
Cc: extra@ietf.org
Content-Type: multipart/alternative; boundary="00000000000051e55c057a4052c1"
Archived-At: <https://mailarchive.ietf.org/arch/msg/extra/2lpeVx0RaVaFQ3C5pfrWxwXDRHE>
Subject: Re: [Extra] imap4rev2: disallow "RENAME INBOX"
X-BeenThere: extra@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Email mailstore and eXtensions To Revise or Amend <extra.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/extra>, <mailto:extra-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/extra/>
List-Post: <mailto:extra@ietf.org>
List-Help: <mailto:extra-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/extra>, <mailto:extra-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 09 Nov 2018 19:26:04 -0000

hey, it was in the spec, we implemented it, just removing the inbox label
and adding another one, easy peasy, about the same as that move command.
The things we didn't implement were things that were much harder (substring
searching is probably the main one) or seemed silly and hard (\Recent).

yes, we didn't reset the UID counter, I guess we could do that and the
uidvalidity, but the initial impl didn't have a good way to change the
underlying uidvalidity, so easier to leave the uid space the same.

Brandon

On Thu, Nov 8, 2018 at 6:54 AM Bron Gondwana <brong@fastmailteam.com> wrote:

> I'm tempted to see what Gmail does too.
>
> . OK brongondwana@gmail.com authenticated (Success)
> . rename INBOX oldinbox
> . OK Success
>
> Well, what do you know.  They implemented it!
>
> ha...
>
> . select oldinbox
> . move 1:* INBOX
>
> ...
>
> . OK [COPYUID 2 1:15214 16312:31525] (Success)
>
> So it looks like it didn't reset the UID counter on the INBOX.  I didn't
> get the UIDVALIDITY of the INBOX at the start to compare.
>
> Bron.
>
> On Fri, Nov 9, 2018, at 01:02, Timo Sirainen wrote:
>
> On 8 Nov 2018, at 13.37, Bron Gondwana <brong@fastmailteam.com> wrote:
>
>
> This is one of the open issues from imap4rev2 - which extensions should be
> part of the mandatory baseline.
>
> This one came from me.  I dislike the weirdness of "RENAME INBOX
> Archive-foo" because of its special behaviour regarding sub mailboxes, and
> the auto-recreation of the source mailbox, and all that jazz.
>
> Argument in favour of keeping it - it's easier for clients, which is part
> of the point of IMAP4rev2 - servers have already suffered through this the
> first time, and will need to keep IMAP4rev1 support for a while anyway
> probably.
>
> Arguments for and against in response to this please.  Also arguments
> about the suggested middleground saying that clients "SHOULD NOT" use it,
> or something like that - with the flip side that servers MAY reject rename
> of INBOX.
>
> We're particularly interested in "I use this, and want to keep it" from
> either servers that see their clients doing it, client authors, or even
> users!
>
> Dovecot has always been rejecting this when used with Maildir format
> (other formats allow it):
>
> a rename inbox plop
> a NO [CANNOT] Renaming INBOX isn't supported (0.001 + 0.000 secs).
>
> I've never heard anyone complain about it.
>
> I've a feeling Courier is rejecting it as well, but can't check now easily.
>
> _______________________________________________
> Extra mailing list
> Extra@ietf.org
> https://www.ietf.org/mailman/listinfo/extra
>
>
> --
>   Bron Gondwana, CEO, FastMail Pty Ltd
>   brong@fastmailteam.com
>
>
> _______________________________________________
> Extra mailing list
> Extra@ietf.org
> https://www.ietf.org/mailman/listinfo/extra
>