MBOX-Line: From tss at iki.fi  Tue Jun 16 12:47:08 2009
To: imap-protocol@u.washington.edu
From: Timo Sirainen <tss@iki.fi>
Date: Fri Jun  8 12:34:42 2018
Subject: [Imap-protocol] Changing capabilities
Message-ID: <1245181628.21624.808.camel@timo-desktop>

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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: This is a digitally signed message part
URL: <http://mailman13.u.washington.edu/pipermail/imap-protocol/attachments/20090616/7544eeef/attachment.sig>
