MBOX-Line: From brong at fastmail.fm  Wed Nov 14 01:18:23 2012
To: imap-protocol@u.washington.edu
From: Bron Gondwana <brong@fastmail.fm>
Date: Fri Jun  8 12:34:49 2018
Subject: [Imap-protocol] Re: Efficiently handling sequence numbers
In-Reply-To: <50A35CAB.9080308@gulbrandsen.priv.no>
References: <CABa8R6v2-NW2L4itj30juL6CEFUC3v9pQG0D0zvqM04UNiB+vA@mail.gmail.com>
	<E121DCDC-75FA-43FB-87A7-EA0EEEEA13B0@iki.fi>
	<CABa8R6sSdHCK9ziPrwc=avaJiHjWtfVtgyBBs=kxSzSkkWJQCQ@mail.gmail.com>
	<8560FE55-3E60-4FCF-9B1A-FB0F66D04295@iki.fi>
	<CABa8R6tdej9ZrNW6EtBXQwuZupsSKP64Fq9fUhJLtJM4oA7NVQ@mail.gmail.com>
	<9B0A7B09-AF1D-41E5-A87E-7BD3A6A05DB2@iki.fi>
	<a805dfe9-549d-4230-9655-9668fb1b7319@flaska.net>
	<CABa8R6vALEqiRdf39juUpTJO9zCo73mgwUCTbFhCfv-+fJuRyg@mail.gmail.com>
	<50A35CAB.9080308@gulbrandsen.priv.no>
Message-ID: <1352884703.18213.140661153457017.064C6E88@webmail.messagingengine.com>

On Wed, Nov 14, 2012, at 09:56 AM, Arnt Gulbrandsen wrote:
> On 11/14/2012 01:00 AM, Brandon Long wrote:
> > Anyone know what the point of that restriction is?
> 
> It broke a server, mrc's perhaps, which used a locking scheme where 
> select locks a mailbox and status does too, and the two locks conflict 
> even though they are owned by the same process.

Yeah, that happens in Cyrus too.  So we check if there's a selected
mailbox and if it has the same name as the one being asked for a
status response, and if so we call index_status() on the index state
rather than statuscache_status() with the mailbox name.

Still, IMAP is already a crazy-stateful protocol, so what's one
more piece of state for every client track of on every connection
and never get wrong...

Bron.
-- 
  Bron Gondwana
  brong@fastmail.fm


