add parser of Authentication-Results, and fix bugs it found in our generated headers

we weren't always quoting the values, like dkim's header.b=abc/def. the "/"
requires that the value be quoted.
This commit is contained in:
Mechiel Lukkien
2024-03-13 17:35:53 +01:00
parent b91480b5af
commit 2c9cb5b847
4 changed files with 674 additions and 16 deletions

View File

@ -26,7 +26,7 @@ func tcheck(t *testing.T, err error, msg string) {
func tcompare(t *testing.T, got, exp any) {
t.Helper()
if !reflect.DeepEqual(got, exp) {
t.Fatalf("got %q, expected %q", got, exp)
t.Fatalf("got %v, expected %v", got, exp)
}
}