Fix handling of unsolicited [CAPABILITY xxx] report in server greeting.
authorDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 17 Jun 2010 13:08:59 +0000 (14:08 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 23 Jun 2010 22:52:27 +0000 (23:52 +0100)
commit4fcd06b696ad30804fcb5a140a9253f9cea6114c
treed5f0f3518d85f09bc878df3e87de70a835b6b39f
parentcf8f84cbaeea6c05f6c1975ecc36a7b80ef4b1e0
Fix handling of unsolicited [CAPABILITY xxx] report in server greeting.

Fix up imapx_untagged() and imap_parse_status() to handle capabilities,
and use imapx_untagged() to read the server greeting.

Unify the greeting handling for the process and socket connections, and
don't re-fetch the capabilities immediately if we have them.

Handle incoming lines of noise before the greeting.
camel/providers/imapx/camel-imapx-server.c
camel/providers/imapx/camel-imapx-utils.c
camel/providers/imapx/camel-imapx-utils.h