mirror of
https://github.com/KumoCorp/kumomta.git
synced 2026-11-17 08:07:36 +00:00
Add kumo.string.psl_suffix_is_known and kumo.string.psl_domain_is_known, which report whether the resolved public suffix is explicitly listed in Mozilla's Public Suffix List. The psl crate applies a "fallback rule": a domain whose public suffix is not in the list (e.g. `domain.invalid`) still resolves to a suffix, but that suffix is not explicitly known. Existing kumo.string.psl_suffix / psl_domain discard this information, so fallback-resolved suffixes are indistinguishable from explicitly listed ones. The new functions return `true` when the suffix is explicitly listed, or `false` otherwise (fallback-resolved, or no public suffix at all). closes: https://github.com/KumoCorp/kumomta/pull/592