mirror of
https://github.com/mjl-/mox.git
synced 2024-12-27 08:53:48 +03:00
fix typo's
some through goreportcard.com
This commit is contained in:
parent
9792158324
commit
52e7054c49
3 changed files with 3 additions and 3 deletions
|
@ -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
|
// 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{}
|
pubsuffixes := map[dns.Domain]dns.Domain{}
|
||||||
pubsuffix := func(name dns.Domain) dns.Domain {
|
pubsuffix := func(name dns.Domain) dns.Domain {
|
||||||
if r, ok := pubsuffixes[name]; ok {
|
if r, ok := pubsuffixes[name]; ok {
|
||||||
|
|
2
main.go
2
main.go
|
@ -166,7 +166,7 @@ type cmd struct {
|
||||||
|
|
||||||
// Set by invoked command or Parse.
|
// Set by invoked command or Parse.
|
||||||
unlisted bool // If set, command is not listed until at least some words are matched from command.
|
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.
|
help string // Additional explanation. First line is synopsis, the rest is only printed for an explicit help/usage for that command.
|
||||||
args []string
|
args []string
|
||||||
}
|
}
|
||||||
|
|
|
@ -1240,7 +1240,7 @@ func (c *conn) cmdRcpt(p *parser) {
|
||||||
receivedSPF, _, _, err := spf.Verify(spfctx, c.resolver, spfArgs)
|
receivedSPF, _, _, err := spf.Verify(spfctx, c.resolver, spfArgs)
|
||||||
spfcancel()
|
spfcancel()
|
||||||
if err != nil {
|
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
|
pass = receivedSPF.Identity == spf.ReceivedMailFrom && receivedSPF.Result == spf.StatusPass
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue