const char * valvula_get_tld_extension ( const char *  address)

Allows to get the domain extension part of the provided address (TLD).

Examples:

1 valvula_get_tld_extension (someaccount@domain-example.com) -> com
2 valvula_get_tld_extension (domain-example.org) -> org
Parameters
addressThe address/domain that is being queried to report its domain extension (TLD)
Returns
A reference to the domain or NULL if it fails. If the function receives a domain, the function reports a domain.

Referenced by valvula_address_rule_match().