Karta.Mail.Header (Karta v1.0.0)

One header field exactly as it was received.

  • raw - the field's bytes: name, colon, value, folding and the final line break. Concatenating the raw of every field gives back the header block byte for byte, which is what DKIM and ARC sign and verify.
  • name - the field name as written (without white space before the colon).
  • value - everything after the colon up to the final line break, still folded. Karta.Mail.Headers.value/1 unfolds it.

Summary

Types

t()

@type t() :: %Karta.Mail.Header{name: String.t(), raw: binary(), value: binary()}