package msgauth
import "github.com/emersion/go-msgauth"
Package msgauth parses and formats Authentication-Results
Authentication-Results header fields are standardized in RFC 7601.
Index ¶
- Constants
- func Format(identity string, results []Result) string
- type AuthResult
- type DKIMResult
- type DomainKeysResult
- type GenericResult
- type IPRevResult
- type Result
- type ResultValue
- type SPFResult
- type SenderIDResult
Constants ¶
const ( ResultNone ResultValue = "none" ResultPass = "pass" ResultFail = "fail" ResultPolicy = "policy" ResultNeutral = "neutral" ResultTempError = "temperror" ResultPermError = "permerror" ResultHardFail = "hardfail" ResultSoftFail = "softfail" )
Functions ¶
func Format ¶
Format formats an Authentication-Results header.
Types ¶
type AuthResult ¶
type AuthResult struct { Value ResultValue Auth string }
type DKIMResult ¶
type DKIMResult struct { Value ResultValue Domain string Identifier string }
type DomainKeysResult ¶
type DomainKeysResult struct { Value ResultValue Domain string From string Sender string }
type GenericResult ¶
type GenericResult struct { Method string Value ResultValue Params map[string]string }
type IPRevResult ¶
type IPRevResult struct { Value ResultValue IP string }
type Result ¶
type Result interface {
// contains filtered or unexported methods
}
Result is an authentication result.
func Parse ¶
Parse parses the provided Authentication-Results header field. It returns the authentication service identifier and authentication results.
type ResultValue ¶
type ResultValue string
ResultValue is an authentication result value, as defined in RFC 5451 section 6.3.
type SPFResult ¶
type SPFResult struct { Value ResultValue From string Helo string }
type SenderIDResult ¶
type SenderIDResult struct { Value ResultValue HeaderKey string HeaderValue string }
Source Files ¶
- Version
- v0.1.0
- Published
- Mar 7, 2019
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 1 week ago –
Tools for package owners.