kisli / vmime

VMime Mail Library
http://www.vmime.org
GNU General Public License v3.0
273 stars 110 forks source link

folded line handling #68

Open Flig opened 10 years ago

Flig commented 10 years ago

headerField parser in case of folded line removes only one CRLF followed by SPACE whereas rfc2822 says: Unfolding is accomplished by simply removing any CRLF that is immediately followed by WSP

vincent-richard commented 10 years ago

Hi!

The VMime parser does exactly what the RFC says: it removes the CRLF when it is immediately followed by WSP, that is a SPACE or a TAB (headerField.cpp, line 194). The RFC says nothing about removing any other whitespace or CRLF, it says to ONLY remove the CRLF.

I may have misunderstood your message, if so please feel free to post an example!

Vincent