Parser.setRespectContentLength

void setRespectContentLength(bool respectContentLength)

Sets whether or not parser should respect Content-Length headers when deciding where to look for the start of the next message. Only used when the parser is also set to scan for From-lines.

Most notably useful when parsing broken Solaris mbox files (See

http://www.jwz.org/doc/content-length.html for details).

By default, this feature is disabled.

Parameters

respectContentLengthtrue if the parser should use Content-Length headers or false otherwise.