package dkim
Module Dkim.EncoderSource
Encoding
The Encoder module provides Prettym formatters for the individual components of a DKIM-Signature header field. The main entry point is Encoder.as_field, which emits a complete DKIM-Signature: ... header line with proper folding for long values.
Formats the algorithm and hash (e.g. "rsa-sha256").
Formats a domain name for the d= tag.
Formats a selector for the s= tag.
Formats a Unix timestamp for the t= tag.
Formats an expiration time for the x= tag.
Formats a body length for the l= tag.
Formats a base64-encoded signature for the b= tag.
Formats the tag-value list of a signed DKIM record (everything after the colon in a DKIM-Signature field).
Formats a complete DKIM-Signature header field, including the field name, colon, properly folded tag-value list, and trailing newline.