From 0fb4a23473c08c8fc31af4d1d914ed37453de605 Mon Sep 17 00:00:00 2001 From: Carlana Johnson Date: Thu, 30 May 2024 09:21:53 -0400 Subject: [PATCH] kickbox: Looser validation (#27) --- pkg/kickbox/verify.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/kickbox/verify.go b/pkg/kickbox/verify.go index 509bb97..240530d 100644 --- a/pkg/kickbox/verify.go +++ b/pkg/kickbox/verify.go @@ -3,7 +3,6 @@ package kickbox import ( "context" "log" - "slices" "github.com/carlmjohnson/requests" ) @@ -34,7 +33,7 @@ func (c *Client) Verify(ctx context.Context, email string) bool { return true } c.l.Printf("kickbox: email=%q result=%q", email, obj.Result) - return slices.Contains([]string{"deliverable", "unknown"}, obj.Result) + return obj.Result != "undeliverable" } // https://docs.kickbox.com/docs/single-verification-api