Fix SMTP submission HELO handling
CI / test (push) Successful in 29s
CI / publish (push) Failing after 28s

This commit is contained in:
Joe Julian
2026-03-28 16:35:34 -07:00
parent 2596dee885
commit 21e6ff3e9e
3 changed files with 40 additions and 0 deletions
+9
View File
@@ -132,6 +132,15 @@ func TestLoadAlmaCredsFromFile(t *testing.T) {
}
}
func TestNormalizeSMTPHeloName(t *testing.T) {
if got := normalizeSMTPHeloName("mail.example.invalid"); got != "mail.example.invalid" {
t.Fatalf("got %q", got)
}
if got := normalizeSMTPHeloName("mailer"); got != "mailer.localdomain" {
t.Fatalf("got %q", got)
}
}
func mustParseHTML(text string) *html.Node {
doc, err := html.Parse(strings.NewReader(text))
if err != nil {