Commit af19f499 authored by Igor's avatar Igor

Fix BODYSTRUCTURE parsing from EWS

Error during parse BODYSTRUCTURE:
[imapx:C] adding command, format = ' (RFC822.SIZE RFC822.HEADER BODYSTRUCTURE FLAGS)'
[imapx:C] completing command buffer is [64] 'UID FETCH ... (RFC822.SIZE RFC822.HEADER BODYSTRUCTURE FLAGS)'
[imapx:C] camel_imapx_server_process_command_sync: (nil) () ~> 0x7fbaa043d460 (REFRESH_INFO)
[imapx:C] Starting command ( literal) C00055 UID FETCH ... (RFC822.SIZE RFC822.HEADER BODYSTRUCTURE FLAGS)
[imapx:C] I/O: 'C00055 UID FETCH ... (RFC822.SIZE RFC822.HEADER BODYSTRUCTURE FLAGS)'
[imapx:C] I/O: '* 5 FETCH (UID ... RFC822.SIZE 39908 RFC822.HEADER  {3187}'
[imapx:C] got untagged response
[imapx:C] Have token 'FETCH' id 5
[imapx:C] I/O: 'Received: from ...
 ([2002:9696:cb1f::9696:cb1f]) with mapi; Tue, 21 Aug 2018 17:11:21 +0200
From: ...
To: ...
Message-ID: ...
...
[imapx:C] camel_imapx_server_process_command_sync: 0x7fbaa043d460 ~> (nil); success:0 local-error:protocol error result:[null] status-text:'[null]'
[imapx:C] Removed connection 0x7fbab8059180 (server:0x558e1adc6dc0) due to error: Error fetching message info: protocol error
[imapx:C] I/O: ''

Closes GNOME/evolution-data-server#27
parent 6387cead
......@@ -826,8 +826,6 @@ camel_imapx_input_stream_token (CamelIMAPXInputStream *is,
*len = o - is->priv->tokenbuf;
return IMAPX_TOK_STRING;
}
if (c == '\n' || c == '\r')
goto protocol_error;
if (o >= oe) {
camel_imapx_input_stream_grow (is, 0, &p, &o);
oe = is->priv->tokenbuf + is->priv->bufsize - 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment