@@ -13,8 +13,8 @@ import (
13
13
type AlignmentMode string
14
14
15
15
const (
16
- AlignmentStrict AlignmentMode = "s"
17
- AlignmentRelaxed = "r"
16
+ AlignmentStrict AlignmentMode = "s"
17
+ AlignmentRelaxed = "r"
18
18
)
19
19
20
20
type FailureOptions int
@@ -29,9 +29,9 @@ const (
29
29
type Policy string
30
30
31
31
const (
32
- PolicyNone Policy = "none"
33
- PolicyQuarantine = "quarantine"
34
- PolicyReject = "reject"
32
+ PolicyNone Policy = "none"
33
+ PolicyQuarantine = "quarantine"
34
+ PolicyReject = "reject"
35
35
)
36
36
37
37
type ReportFormat string
@@ -42,16 +42,16 @@ const (
42
42
43
43
// Record is a DMARC record, as defined in RFC 7489 section 6.3.
44
44
type Record struct {
45
- DKIMAlignment AlignmentMode // "adkim"
46
- SPFAlignment AlignmentMode // "aspf"
47
- FailureOptions FailureOptions // "fo"
48
- Policy Policy // "p"
49
- Percent * int // "pct"
50
- ReportFormat []ReportFormat // "rf"
51
- ReportInterval time.Duration // "ri"
52
- ReportURIAggregate []string // "rua"
53
- ReportURIFailure []string // "ruf"
54
- SubdomainPolicy Policy // "sp"
45
+ DKIMAlignment AlignmentMode // "adkim"
46
+ SPFAlignment AlignmentMode // "aspf"
47
+ FailureOptions FailureOptions // "fo"
48
+ Policy Policy // "p"
49
+ Percent * int // "pct"
50
+ ReportFormat []ReportFormat // "rf"
51
+ ReportInterval time.Duration // "ri"
52
+ ReportURIAggregate []string // "rua"
53
+ ReportURIFailure []string // "ruf"
54
+ SubdomainPolicy Policy // "sp"
55
55
}
56
56
57
57
type tempFailError string
0 commit comments