From 52e7054c4919a489ae26ae1e8d8efa56443b1237 Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Mon, 6 Feb 2023 11:00:11 +0100 Subject: [PATCH] fix typo's some through goreportcard.com --- dmarc/dmarc.go | 2 +- main.go | 2 +- smtpserver/server.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dmarc/dmarc.go b/dmarc/dmarc.go index 81dddbf..f76c58e 100644 --- a/dmarc/dmarc.go +++ b/dmarc/dmarc.go @@ -202,7 +202,7 @@ func Verify(ctx context.Context, resolver dns.Resolver, from dns.Domain, dkimRes } // Below we can do a bunch of publicsuffix lookups. Cache the results, mostly to - // reduce log polution. + // reduce log pollution. pubsuffixes := map[dns.Domain]dns.Domain{} pubsuffix := func(name dns.Domain) dns.Domain { if r, ok := pubsuffixes[name]; ok { diff --git a/main.go b/main.go index 55b8f00..221cfd0 100644 --- a/main.go +++ b/main.go @@ -166,7 +166,7 @@ type cmd struct { // Set by invoked command or Parse. unlisted bool // If set, command is not listed until at least some words are matched from command. - params string // Arguments to command. Mutliple lines possible. + params string // Arguments to command. Multiple lines possible. help string // Additional explanation. First line is synopsis, the rest is only printed for an explicit help/usage for that command. args []string } diff --git a/smtpserver/server.go b/smtpserver/server.go index 3253262..ef26afd 100644 --- a/smtpserver/server.go +++ b/smtpserver/server.go @@ -1240,7 +1240,7 @@ func (c *conn) cmdRcpt(p *parser) { receivedSPF, _, _, err := spf.Verify(spfctx, c.resolver, spfArgs) spfcancel() if err != nil { - c.log.Errorx("spf verify for multiple reciepients", err) + c.log.Errorx("spf verify for multiple recipients", err) } pass = receivedSPF.Identity == spf.ReceivedMailFrom && receivedSPF.Result == spf.StatusPass }