ParserOptions.setRfc2047ComplianceMode

void setRfc2047ComplianceMode(gmime.types.RfcComplianceMode mode)

Sets the compliance mode that should be used when parsing rfc2047 encoded words.

In general, you'll probably want this value to be #GMIME_RFC_COMPLIANCE_LOOSE (the default) as it allows maximum interoperability with existing (broken) mail clients and other mail software such as sloppily written perl scripts (aka spambots).

Note

Even in #GMIME_RFC_COMPLIANCE_STRICT mode, the parameter parser is fairly liberal

in what it accepts. Setting it to #GMIME_RFC_COMPLIANCE_LOOSE just makes it try harder to deal with garbage input.

Parameters

modea #GMimeRfcComplianceMode