[IMAPx] Disable request of BODYSTRUCTURE when its response is broken
After upgrading to Evolution 3.30.0-1, I can't receive new mails and it's shown the error: "Error fetching message info: expecting number".
Running Evolution with the option CAMEL_DEBUG=imapx
shows the next log about the previous error:
[imapx:B] Starting command ( literal) B00022 UID FETCH 10072:10088,10058,10047 (RFC822.SIZE RFC822.HEADER BODYSTRUCTURE FLAGS) [imapx:B] I/O: 'B00022 UID FETCH 10072:10088,10058,10047 (RFC822.SIZE RFC822.HEADER BODYSTRUCTURE FLAGS)' [imapx:B] I/O: '* 295 FETCH (RFC822.SIZE 31380 RFC822.HEADER {968}' [imapx:B] got untagged response [imapx:B] Have token 'FETCH' id 295 [imapx:B] I/O: 'MIME-Version: 1.0 Received: from MAILBOXSERVER.dipucadiz.dom ([172.22.8.222]) by neron5.dipucadiz.dom ([fe80::1160:7880:d1e6:63b8%13]) with mapi; Tue, 25 Sep 2018 12:07:36 +0200 From: Antonio Ureba Basallote To: Bruno Orcha Garcia Date: Tue, 25 Sep 2018 12:07:34 +0200 Subject: app Thread-Topic: app Thread-Index: AdRUt5SzMzWOjtGvSWWYVp0TIJZVEA== Message-ID: <0C91BC39-8398-463D-AB7F-AC3470B2F314@dipucadiz.es> Accept-Language: en-US, es-ES Content-Language: es-ES X-MS-Exchange-Organization-AuthAs: Internal X-MS-Exchange-Organization-AuthMechanism: 04 X-MS-Exchange-Organization-AuthSource: neron5.dipucadiz.dom X-MS-Has-Attach: yes X-MS-Exchange-Organization-SCL: -1 X-MS-TNEF-Correlator: acceptlanguage: en-US, es-ES Content-Type: multipart/signed; boundary="Apple-Mail=_F5C2FF7A-64B8-40CC-8F28-98E34726D6A3"; protocol="application/pkcs7-signature"; micalg=sha1' [imapx:B] I/O: ' BODYSTRUCTURE ("multipart" "signed" ("boundary" "Apple-Mail=_F5C2FF7A-64B8-40CC-8F28-98E34726D6A3" "protocol" "application/pkcs7-signature" "micalg" "sha1") NIL NIL "7BIT" -1 NIL NIL "es-ES" NIL) FLAGS (\Seen) UID 10047)' [imapx:B] camel_imapx_server_process_command_sync: 0x560faf9f5a40 ~> (nil); success:0 local-error:expecting number result:[null] status-text:'[null]' [imapx:B] Removed connection 0x7f25ec044900 (server:0x560faf3346d0) due to error: Error fetching message info: expecting number
Deleting this email using another mail client solves the problem in the INBOX folder. But if I try to check others folders the error is back due to the same problem but with others "malformed mails?" I'm connecting to a Microsoft Exchange Server 2007 SP3.