ParserOptions.setAddressComplianceMode

void setAddressComplianceMode(gmime.types.RfcComplianceMode mode)

Sets the compliance mode that should be used when parsing rfc822 addresses.

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 address 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