IMAP: Accept more spaces when reading untagged responses
commit6c17000002437b67c690d892be0dc014b2ef0db3
authorJan Kundrát <jkt@kde.org>
Thu, 7 Jul 2016 14:59:49 +0000 (7 16:59 +0200)
committerJan Kundrát <jkt@kde.org>
Thu, 7 Jul 2016 14:59:49 +0000 (7 16:59 +0200)
treeb6a5744114a12feb01a160400ae9b159be616a27
parentff4b89bb7e7df934e7731145cb2da67caf5861eb
IMAP: Accept more spaces when reading untagged responses

The IMAP standard is 100% clear on this one, but apparently there are
servers out there which get this thing wrong and send extra spaces every
now and then -- a "DevMail Gateway" is one of these, according to the
linked bug. That behavior is incorrect and in violation of RFC3501, but
whatever, we've added similar incompatibility quirks before and I'm
afraid that we'll have to keep adding them in future, too.

Let's see if this is enough to work with the above mentioned server
implementation.

BUG: 365149
Change-Id: Iff89b82ca3ca4be719076e3ee81176b8fc7d287c
src/Imap/Parser/Parser.cpp
tests/Imap/test_Imap_Parser_parse.cpp