set_allow_addresses_without_domain


Description:

public void set_allow_addresses_without_domain (bool allow)

Sets whether the rfc822 address parser should allow addresses without a domain.

In general, you'll probably want this value to be false (the default) as it allows maximum interoperability with existing (broken) mail clients and other mail software such as sloppily written perl scripts (aka spambots) that do not properly quote the name when it contains a comma.

This option exists in order to allow parsing of mailbox addresses that do not have a domain component. These types of addresses are rare and were typically only used when sending mail to other users on the same UNIX system.

Parameters:

this

a ParserOptions

allow

true if the parser should allow addresses without a domain or false otherwise




2022 vala-language.org