Parser.setRespectContentLength

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.

class Parser
void
setRespectContentLength

Parameters

respectContentLength bool

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