MBOX-Line: From dkarp at zimbra.com  Wed Oct 24 05:34:05 2007
To: imap-protocol@u.washington.edu
From: Dan Karp <dkarp@zimbra.com>
Date: Fri Jun  8 12:34:40 2018
Subject: [Imap-protocol] STATUS on a \NoSelect mailbox
Message-ID: <1289589251.146651193229245957.JavaMail.root@dogfood.zimbra.com>

We've always gone on the assumption that you should be able to ask for STATUS on any mailbox returned in a LIST response.  The new Gmail IMAP implementation doesn't seem to play that way -- they have a base \NoSelect mailbox that's returned from LIST but that returns NO on STATUS:

   A3 LIST "" "*"
   * LIST () "/" "INBOX"
   * LIST () "/" "Trash"
   * LIST (\Noselect) "/" "[Gmail]"
   * LIST () "/" "[Gmail]/All Mail"
   * LIST () "/" "[Gmail]/Drafts"
   * LIST () "/" "[Gmail]/Sent Mail"
   * LIST () "/" "[Gmail]/Spam"
   * LIST () "/" "[Gmail]/Starred"
   * LIST () "/" "[Gmail]/Trash"
   A3 OK Success 

   A6 STATUS [Gmail] (UIDVALIDITY)
   A6 NO Invalid folder: [Gmail] (Failure)

Is this acceptable server behavior?

