From cb378344c1b251c0c82233831d79b2ccfd7f5483 Mon Sep 17 00:00:00 2001 From: Anatolij Ostroumov Date: Wed, 23 Aug 2023 23:34:26 +0300 Subject: [PATCH] spelling --- plugins/dovecot/dovecot_test.go | 2 +- plugins/rspamd/rspamd.go | 12 ++++++------ plugins/sender/sender_resolvable.go | 2 +- server.go | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/plugins/dovecot/dovecot_test.go b/plugins/dovecot/dovecot_test.go index 0ea836c..3629722 100644 --- a/plugins/dovecot/dovecot_test.go +++ b/plugins/dovecot/dovecot_test.go @@ -60,7 +60,7 @@ func TestDovecot_Exists(t *testing.T) { }) if err != nil { if err.Error() != "521 i have no idea about recipient you want to deliver message to" { - t.Errorf("%s : wrong error while checking non existant mailbox", err) + t.Errorf("%s : wrong error while checking non existent mailbox", err) } } else { t.Errorf("error is expected") diff --git a/plugins/rspamd/rspamd.go b/plugins/rspamd/rspamd.go index e60eb30..b245666 100644 --- a/plugins/rspamd/rspamd.go +++ b/plugins/rspamd/rspamd.go @@ -69,22 +69,22 @@ type AddHeader struct { Order int } -// ActionNoop is thing rspamd recomends to do with this message +// ActionNoop is thing rspamd recommends to do with this message const ActionNoop = "no action" -// ActionGreylist is thing rspamd recomends to do with this message +// ActionGreylist is thing rspamd recommends to do with this message const ActionGreylist = "greylist" -// ActionAddHeader is thing rspamd recomends to do with this message +// ActionAddHeader is thing rspamd recommends to do with this message const ActionAddHeader = "add header" -// ActionRewriteSubject is thing rspamd recomends to do with this message +// ActionRewriteSubject is thing rspamd recommends to do with this message const ActionRewriteSubject = "rewrite subject" -// ActionSoftReject is thing rspamd recomends to do with this message +// ActionSoftReject is thing rspamd recommends to do with this message const ActionSoftReject = "soft reject" -// ActionHardReject is thing rspamd recomends to do with this message +// ActionHardReject is thing rspamd recommends to do with this message const ActionHardReject = "reject" const rspamdComplain = "Too many letters, i cannot read them all now. Please, resend your message later" diff --git a/plugins/sender/sender_resolvable.go b/plugins/sender/sender_resolvable.go index 7ae08e0..6ed3074 100644 --- a/plugins/sender/sender_resolvable.go +++ b/plugins/sender/sender_resolvable.go @@ -161,7 +161,7 @@ func IsResolvable(opts IsResolvableOptions) msmtpd.SenderChecker { continue } if ip.IsLinkLocalUnicast() { - transaction.LogDebug("%s of MX of %s is link local unicast - wierd", + transaction.LogDebug("%s of MX of %s is link local unicast - weird", ip.String(), domain, ) continue diff --git a/server.go b/server.go index 0397a6b..89509a7 100644 --- a/server.go +++ b/server.go @@ -78,7 +78,7 @@ type Server struct { Resolver *net.Resolver // SkipResolvingPTR disables resolving reverse/point DNS records of connecting IP address, - // it can be usefull in various DNS checks, but it reduces perfomance due to quite + // it can be useful in various DNS checks, but it reduces performance due to quite // expensive and slow DNS calls. By default resolving PTR records is enabled SkipResolvingPTR bool