Bug 126977 - Enhancement: Make use of automatically sent capability information
Summary: Enhancement: Make use of automatically sent capability information
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: imap (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-08 19:40 UTC by Magnus Holmgren
Modified: 2018-11-17 12:44 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Magnus Holmgren 2006-05-08 19:40:00 UTC
Version:            (using KDE KDE 3.5.2)
Installed from:    Debian testing/unstable Packages

RFC 3501 section 7.2.1 states:

"A server MAY send capabilities automatically, by using the       CAPABILITY response code in the initial PREAUTH or OK responses, and by sending an updated CAPABILITY response code in the tagged OK response as part of a successful authentication.  It is       unnecessary for a client to send a separate CAPABILITY command if it recognizes these automatic capabilities."

I know at least Dovecot can send such response codes. It looks like this:

Connected to ittma-hohah.kibibyte.se.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS STARTTLS LOGINDISABLED] Dovecot ready.
Comment 1 Carsten Burghardt 2006-05-10 22:50:16 UTC
The capability can already be evaluated and kmail actually uses this. See IMAP4Protocol::special 
Comment 2 Magnus Holmgren 2006-05-11 00:00:07 UTC
I believe you misunderstood me. This is just a minor optimisation that would cause the imap kioslave not to ask for capabilities right after connecting if the server includes it in its greeting, thus saving one round-trip. It has nothing to do with how the capability information can be used by Kmail et al.

Before:
S: * OK [CAPABILITY IMAP4Rev1 SORT STARTTLS ...] I'm ready.
C: a001 CAPABILITY
S: * CAPABILITY IMAP4Rev1 SORT STARTTLS ...
C: a002 STARTTLS

After:
S: * OK [CAPABILITY IMAP4Rev1 SORT STARTTLS ...] I'm ready.
C: a001 STARTTLS

It would amount to adding a case for CAPABILIY in imapParser::parseResult() and changing imapParser::parseLoop() and/or IMAP4Protocol::makeLogin() so that the greeting gets parsed.

It's a tad silly, although it's Right, so you mark it with WONTFIX, but I can't accept INVALID (and I reserve the right to submit a patch anyway :-).
Comment 3 Thomas McGuire 2007-12-12 23:38:25 UTC
Reassigning the bugs of the SMTP, IMAP and POP ioslaves to kdepim-bugs.
Comment 4 Thomas McGuire 2007-12-12 23:41:56 UTC
Undo autoconfirm.
Comment 5 Christophe Marin 2018-11-17 12:44:57 UTC
kio_imap4 doesn't exist anymore.