FormatOptions.createNewlineFilter

gmime.filter.Filter createNewlineFilter(bool ensureNewline)

Creates a #GMimeFilter suitable for converting line-endings to the currently set new-line format.

Parameters

ensureNewlinetrue if the output must always end with a new line

Returns

a #GMimeFilter to convert to the specified new-line format.