After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 780617 - [IMAPx] Allow FETCH response split into multiple lines
[IMAPx] Allow FETCH response split into multiple lines
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: general
3.18.x (obsolete)
Other Linux
: Normal major
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2017-03-27 20:17 UTC by ben-Nabiy Derush
Modified: 2017-03-28 06:54 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description ben-Nabiy Derush 2017-03-27 20:17:41 UTC
Similar to Bug 659868.

Patch fixed it in 3.18.5.2

pastebin of example:
https://pastebin.mozilla.org/8983311

patch which fixed it...
https://paste.gnome.org/prko5ix27
Comment 1 Milan Crha 2017-03-28 06:49:30 UTC
Thanks for a bug report. From the first pastebin (which may disappear in the future):

   [imapx:A] I/O: '* 1 FETCH (UID 145342 RFC822.SIZE 3918 ^M
   RFC822.HEADER {247}^M
   Return-Path: userb@example.net^M
   Date: Sun, 29 Jan 2017 11:35:31 -0500^M
   To: usera@example.net^M
   Subject: Test^M
   Message-ID: <da4845f637bf1b3494037561af73468f@example.net>^M
   From: "User B" <userb@example.net>^M
    FLAGS (\Seen))^M

Which is part of the response where ^M is \r, which is followed by \n. The first line is the problem, because it splits the FETCH response into multiple lines in the place where it is usually not done (this is the first server doing that, as far as I know). IMAPx ended with error:

   Error fetching message info: missing closing ')' on fetch response

I didn't find a confirmation in RFC that any such thing can be done, but it doesn't seem a problem for properly-behaved servers, thus I've no problem to include the patch in the sources. As Ben confirmed on IRC, neither Thunderbird, nor Claws mail suffer of this issue.
Comment 2 Milan Crha 2017-03-28 06:54:31 UTC
Created commit c058f29 in eds master (3.25.1+)
Created commit c6df50a in eds gnome-3-24 (3.24.1+)