Karta.MTASTS.TXT (Karta v1.0.0)

The _mta-sts TXT record of a domain (RFC 8461 §3.1), which announces a policy and names its version: v=STSv1; id=20261108T120000;.

The strings of each record are joined without spaces. Records that do not begin with v=STSv1; are not about MTA-STS and are left out. Exactly one must remain, and it must be valid: v=STSv1 first, then fields name=value separated by ; (spaces and tabs around a ; are allowed, a final ; too), among them an id of 1 to 32 letters and digits (the first id counts). Unknown fields are ignored. Anything else means the domain has no policy available (RFC 8461 §3.1).

Summary

Functions

The policy id the records announce, or :none.

Functions

id(records)

@spec id([[String.t()]]) :: {:ok, String.t()} | :none

The policy id the records announce, or :none.