MBOX-Line: From brendan at kublai.com  Tue Jun 16 13:17:20 2009
To: imap-protocol@u.washington.edu
From: Brendan Cully <brendan@kublai.com>
Date: Fri Jun  8 12:34:42 2018
Subject: [Imap-protocol] Changing capabilities
In-Reply-To: <1245181628.21624.808.camel@timo-desktop>
References: <1245181628.21624.808.camel@timo-desktop>
Message-ID: <20090616201719.GC90151@zanzibar.kublai.com>

On Tuesday, 16 June 2009 at 15:47, Timo Sirainen wrote:
> Has anyone tested how well clients support catching capabilities after
> login? I was planning on having Dovecot v2.0 send only very minimal
> capabilities before login. The way it works is:
> 
> a) A new enough client that understands [CAPABILITY ..] :
> 
> * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
> 1 login user pass
> 1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH] Logged in
> 
> b) Client that doesn't understand [CAPABILITY ..]:
> 
> * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
> 1 capability
> * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN AUTH=LOGIN
> 1 OK Capability completed.
> 2 login user pass
> * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH
> 2 OK Logged in
> 
> Note that in b) case it's sending untagged CAPABILITY reply. This seems
> to help a lot of clients.
> 
> The list of clients I've so far tested are:
> 
>  - Thunderbird v2.0 works
>  - Alpine v2.0 works
>  - Apple Mail works
>  - Outlook 2003 works (tested by someone else than me)
>  - Outlook Express works (tested by someone else than me)
>  - Evolution ignores the updated capability.
> 
> The above list looks promising enough that I have some hope of being
> able to actually do this.

Mutt supports this too.

