authres

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package authres works out a sender check from an Authentication-Results header (RFC 8601), as design/rendering.md describes (ADR-0050). It reads the header text only: it verifies nothing and makes no request.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Verdict

type Verdict string

Verdict is the outcome of a sender check.

const (
	None Verdict = ""
	Pass Verdict = "pass"
	Fail Verdict = "fail"
)

The verdicts. None means the header does not say.

func SenderCheck

func SenderCheck(header string) Verdict

SenderCheck returns the verdict for the value of the first Authentication-Results header. DMARC decides; DKIM decides only when the header has no DMARC result.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL