utils_sanitize_ascii_domain_in_address


Description:


[ Version ( since = "3.44" ) ]
public string? utils_sanitize_ascii_domain_in_address (string? email_address, bool do_format)

Checks whether the domain in the email_address requires conversion to ASCII and if it does it also converts it.

When the do_format is true, the output string is formatted for display, otherwise it's encoded for use in the message headers. A null is returned when no conversion was needed.

Parameters:

email_address

an email address as string

do_format

what format will be returned

Returns:

the email_address with only ASCII letters, if such conversion is needed or null, when no conversion was required.

See: hostname_utils_requires_ascii, sanitize_ascii_domain, utils_sanitize_ascii_domain_in_url_str


Namespace: Camel
Package: camel-1.2