View Source Disposable (Disposable v0.2.0)
Checks whether an email address uses a disposable domain.
Email handling is intentionally limited validation: the value must be a printable UTF-8 string with one non-empty local part and a valid ASCII domain. This module does not implement complete RFC 5322 parsing.
Summary
Types
A disposable domain name represented as a UTF-8 string.
An email address represented as a UTF-8 string.
Functions
Compatibility alias for disposable?/1; invalid and unavailable lookups return false.
Returns true only for a valid email whose exact domain is listed.
Loads a newline-delimited domain list from an administrator-controlled URL.
Looks up an email address without collapsing errors.
Reloads the configured source, preserving the active generation on failure.
Starts the ETS-backed domain store registered as Disposable.
Types
Functions
Compatibility alias for disposable?/1; invalid and unavailable lookups return false.
Returns true only for a valid email whose exact domain is listed.
Loads a newline-delimited domain list from an administrator-controlled URL.
Redirects, non-200 responses, invalid content, and transport failures leave the active generation unchanged.
Looks up an email address without collapsing errors.
Returns {:ok, boolean()} for valid input, or {:error, reason} for
:invalid_email and :not_running.
@spec reload() :: :ok | {:error, term()}
Reloads the configured source, preserving the active generation on failure.
@spec start_link(keyword()) :: GenServer.on_start()
Starts the ETS-backed domain store registered as Disposable.