FormatOptions.createNewlineFilter

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

class FormatOptions
createNewlineFilter

Parameters

ensureNewline bool

true if the output must *always* end with a new line

Return Value

Type: gmime.filter.Filter

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