vmime fails to parse a header field with no data in the first line.
Example:
Message-ID:
<68CC….@mail.domain.zz>
The value of "Message-ID" is empty and not "<68CC….@mail.domain.zz>".
I added this in headField.cpp on line 149 to get the value:
// Check for folded line
if (c == '\r' && pos + 2 < end && buffer == '\n' &&
(buffer == ' ' || buffer == '\t'))
{
pos += 3;
}
// Check for end of contents
else if (c == '\r' && pos + 1 < end && buffer == '\n')
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
vmime fails to parse a header field with no data in the first line.
Example:
Message-ID:
<68CC….@mail.domain.zz>
The value of "Message-ID" is empty and not "<68CC….@mail.domain.zz>".
I added this in headField.cpp on line 149 to get the value:
// Check for folded line
if (c == '\r' && pos + 2 < end && buffer == '\n' &&
(buffer == ' ' || buffer == '\t'))
{
pos += 3;
}
// Check for end of contents
else if (c == '\r' && pos + 1 < end && buffer == '\n')
Hello!
Thank you very much for this fix.
I have committed the patch to the SVN.
Vincent