--- libvmime-0.9.2.orig/src/word.cpp 2014-08-21 10:30:25.360037840 +0200 +++ libvmime-0.9.2/src/word.cpp 2014-08-21 10:31:33.166782973 +0200 @@ -73,11 +73,13 @@ ref 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; }