Header.formatDefault

string formatDefault(gmime.format_options.FormatOptions options, string value, string charset)

Parses the value and then re-formats it to conform to the formatting options, folding the value if necessary.

Parameters

optionsa #GMimeFormatOptions or null
valuea header value
charseta charset to use when encoding the value

Returns

a newly allocated string containing the reformatted value.