File 13-vmime-ignore-newlines.diff of Package libvmime_zarafa7
---
src/word.cpp | 3 +++
1 file changed, 3 insertions(+)
Index: vmime/src/word.cpp
===================================================================
--- vmime.orig/src/word.cpp
+++ vmime/src/word.cpp
@@ -73,11 +73,14 @@ ref <word> word::parseNext(const string&
// - before the first word
// - between two encoded words
// - after the last word
+ // Always ignore newlines
string whiteSpaces;
while (pos < end && parserHelpers::isSpace(buffer[pos]))
{
whiteSpaces += buffer[pos];
+ if(buffer[pos] != '\r' && buffer[pos] != '\n') // do not include newlines
+ whiteSpaces += buffer[pos];
++pos;
}