From 81c179bb4ced47779818580ff16af408429f59b8 Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Fri, 4 Oct 2024 20:05:28 +0200 Subject: [PATCH] fix embarrasing bug in checking if string is ascii result reversed for issue #179 and issue #157 --- smtpserver/analyze.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smtpserver/analyze.go b/smtpserver/analyze.go index 62e0e43..303f319 100644 --- a/smtpserver/analyze.go +++ b/smtpserver/analyze.go @@ -698,8 +698,8 @@ func analyze(ctx context.Context, log mlog.Log, resolver dns.Resolver, d deliver func isASCII(s string) bool { for _, b := range []byte(s) { if b >= 0x80 { - return true + return false } } - return false + return true }