[Extra] sieve-mailboxid: should specialuse override mailboxid?

Bron Gondwana <brong@fastmailteam.com> Mon, 07 September 2020 01:05 UTC

Return-Path: <brong@fastmailteam.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 88D1B3A0D93 for <extra@ietfa.amsl.com>; Sun, 6 Sep 2020 18:05:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 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_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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=xzF/4f1z; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=CPSIpxq1
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 DIIodRK68M7E for <extra@ietfa.amsl.com>; Sun, 6 Sep 2020 18:05:14 -0700 (PDT)
Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 357353A0D74 for <extra@ietf.org>; Sun, 6 Sep 2020 18:05:14 -0700 (PDT)
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 94DC05C0082 for <extra@ietf.org>; Sun, 6 Sep 2020 21:05:13 -0400 (EDT)
Received: from imap7 ([10.202.2.57]) by compute1.internal (MEProxy); Sun, 06 Sep 2020 21:05:13 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= fastmailteam.com; h=mime-version:message-id:date:from:to:subject :content-type; s=fm3; bh=SwlzqU0/r9YI5Uikp1PS9OVjtG63z4ONTMUn92m iLKs=; b=xzF/4f1zTKq7HyKUtW2xAA3j9dkuEVWSBekIZBS+Dj2HGSf/8EaDwu/ mH4c0nHcG8bxqCsahGft1VM2IYbOV+AqwyK6iMYkDSWQknk+htT3M68/2qIniCwR N0zBnztdFitxDIaKfj4sfap+Qu4FsTzeavKhYUu4yqFEzkIyUby+B+a7HNvnVM79 n6N1iEX1Gj7yyMGTXKWGQwhfz0ACug2ziN/KzWwfT32KOZc++Z+zAOenWdST1PCC NinV26ORTAs13KYoGEuKd1cuvnZOEHAHJm4xhD0GFjFOEksrr/uDyqujryPHufFB b8qwRFiKjYyClOBftV7eebLa2f+ZelA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=fm3; bh=SwlzqU0/r9YI5Uikp1PS9OVjtG63z 4ONTMUn92miLKs=; b=CPSIpxq1U66fKfX/ALApiyFWHKi79dSUT/aHbqxFR3rlg oZfEe2wfbzpte/H0LXI4bmYnHCI0bWk9VoUBblsQiTeH/9ltNIADMKCxNMtO6oo2 38fOCxCxvepGblkjz0QlqdAiIu+p27RK25BM98294qY7MVcaxGRCJifJWTXKApxV MNlmRZfeyUDeTfjKqKM1WuXI7ay5G2QEOMT9eP9lJ7k7FripwS2pPgbkJ7RvaBZ/ NIddycdlZKeztb5OL88iRhoObzqJ7hcaA5Uma3VeRQbOckfjRrHzIQvRLWT9r6Iy 2eItlBUOPj3a+L7gY9ufmubrY4I9DZYhlYE1KbhXQ==
X-ME-Sender: <xms:SYdVX8YzOJ2XFHehnY6JysirFTo8ixl8xLGro_Wu9tRHA2fnYou_CQ> <xme:SYdVX3YL8CUvU5dUw95in3hp6HobkzHpmVGGQXbJMllsz4BUv9c82qVj5wVQfPS3Q WoMTF_PUMA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudegkedgfeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsegrtderre erredtnecuhfhrohhmpedfuehrohhnucfiohhnugifrghnrgdfuceosghrohhnghesfhgr shhtmhgrihhlthgvrghmrdgtohhmqeenucggtffrrghtthgvrhhnpedvteetieeviefhge eitdegiefgudevleehgfffleegleeuhefhiedtleegtdffgeenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegsrhhonhhgsehfrghsthhmrghilh htvggrmhdrtghomh
X-ME-Proxy: <xmx:SYdVX289qa24qpy-fyFnbSUWXBnZi8yQ5m3QCI1lgmdE5RWaBA0EOA> <xmx:SYdVX2pOeCc9vYIXxpjvRaZbjBbv3fjimNUrEK65TCB3b4bJ9Q5rfQ> <xmx:SYdVX3pjqFaAoevnRUS02uIT5hkbPWXUBD8M8Gu0xYBFhVK5P19bow> <xmx:SYdVX00RVS6G57DrzkOj7gYiFiSLDSEzlltnq0Jxjwa6CuzcRRo95Q>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id EC867180096; Sun, 6 Sep 2020 21:05:12 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.3.0-259-g88fbbfa-fm-20200903.003-g88fbbfa3
Mime-Version: 1.0
Message-Id: <93ffd5ac-b570-45ff-bd7c-5cfea7512828@www.fastmail.com>
Date: Mon, 07 Sep 2020 11:04:52 +1000
From: Bron Gondwana <brong@fastmailteam.com>
To: extra@ietf.org
Content-Type: multipart/alternative; boundary="c7c8cdba6af24306b78729f4a62992ee"
Archived-At: <https://mailarchive.ietf.org/arch/msg/extra/pmfG7HUZ3aIchCHywhGzini7KbI>
Subject: [Extra] sieve-mailboxid: should specialuse override mailboxid?
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: Mon, 07 Sep 2020 01:05:16 -0000

Hi All,

This is extracting one point from Barry's review - I'd like feedback on it.

Right now with this case, it will file into the folder F1234567 even if there is a DIFFERENT folder with the specialuse \Archive and this folder does not have that specialuse:

   require "fileinto";
   require "mailboxid";
   require "mailbox";
   require "special-use";

   fileinto :mailboxid "F1234567"
            :specialuse "\\Archive"
            :create
            "INBOX.Archive";
               # creates INBOX.Archive with use \Archive but
               # with a different mailboxid.


Barry proposed that we switch the order, and the specialuse takes priority over the mailboxid.  I am happy to make this change and can see that it makes sense.  Does anybody else have any strong opinions about this?  I will make the change in -04, but if there's more discussion to have then I'm happy to revert it.

Cheers,

Bron.

--
  Bron Gondwana, CEO, Fastmail Pty Ltd
  brong@fastmailteam.com