diff --git a/cmd/dmarc-report-converter/consts.go b/cmd/dmarc-report-converter/consts.go
index 456e025..bf333f4 100644
--- a/cmd/dmarc-report-converter/consts.go
+++ b/cmd/dmarc-report-converter/consts.go
@@ -1,39 +1,6 @@
package main
-const htmlTmpl = `
-
-
-
-
-
@@ -121,25 +88,40 @@ table.table.bottomless
{{.Row.PolicyEvaluated.SPF}}
{{- end }}
-
{{.AuthResults.DKIM.Domain}} |
-
- {{- if eq .AuthResults.DKIM.Result "pass"}}
- {{.AuthResults.DKIM.Result}}
- {{- else if eq .AuthResults.DKIM.Result "fail"}}
- {{.AuthResults.DKIM.Result}}
- {{- else}}
- {{.AuthResults.DKIM.Result}}
- {{- end}}
+ |
+ {{- $len := len .AuthResults.DKIM }}
+ {{- range $j, $foo := .AuthResults.DKIM }}
+ {{- .Domain }}
+ {{- if lt $j $len }} {{ end }}
+ {{- end -}}
|
- {{.AuthResults.SPF.Domain}} |
-
- {{- if eq .AuthResults.SPF.Result "pass"}}
- {{.AuthResults.SPF.Result}}
- {{- else if eq .AuthResults.SPF.Result "fail"}}
- {{.AuthResults.SPF.Result}}
- {{- else}}
- {{.AuthResults.SPF.Result}}
- {{- end}}
+ |
+ {{- range $j, $d := .AuthResults.DKIM }}
+ {{.Result}}
+ {{- if lt $j $len }} {{ end }}
+ {{- end -}}
+ |
+
+ {{- $len = len .AuthResults.SPF }}
+ {{- range $j, $foo := .AuthResults.SPF }}
+ {{- .Domain }}
+ {{- if lt $j $len }} {{ end }}
+ {{- end -}}
+ |
+ {{- range $j, $d := .AuthResults.SPF }}
+ {{.Result}}
+ {{- if lt $j $len }} {{ end }}
+ {{- end -}}
|
{{- end }}
@@ -148,6 +130,42 @@ table.table.bottomless
+`
+
+const htmlTmpl = `
+
+
+
+
+