set_respect_content_length


Description:

public void set_respect_content_length (bool respect_content_length)

Sets whether or not this 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:

this

a Parser context

respect_content_length

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