MBOX-Line: From mrc+imap at panda.com  Fri Dec  9 21:25:45 2011
To: imap-protocol@u.washington.edu
From: Mark Crispin <mrc+imap@panda.com>
Date: Fri Jun  8 12:34:47 2018
Subject: [Imap-protocol] LIST reply with trailing separator, once more
In-Reply-To: <1323492410.15365.102.camel@hurina>
References: <1323492410.15365.102.camel@hurina>
Message-ID: <alpine.OSX.2.00.1112092123160.931@hsinghsing.panda.com>

You can solve the conundrum by making "select/" be selectable.

Just sayin'.

On Sat, 10 Dec 2011, Timo Sirainen wrote:
> I'm again cleaning up my LIST handling code and started wondering. Lets
> say I have a mailbox:
>
> a list "" s*
> * LIST (\HasNoChildren) "/" "select"
> a OK List completed.
>
> Now, is it correct to reply with b) or with c)?
>
> b list "" select/*
> * LIST (\HasNoChildren) "/" "select/"
> b OK List completed.
>
> c list "" select/*
> * LIST (\Noselect \HasNoChildren) "/" "select/"
> c OK List completed.
>
> I'm leaning towards c), because while "select" is a selectable mailbox,
> "select/" isn't.
>
> (Then again, I remember some clients having had some trouble with this
> reply, so maybe I'll need to return b) anyway.)

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.

