Skip to content

Commit

Permalink
kickbox: Looser validation
Browse files Browse the repository at this point in the history
  • Loading branch information
earthboundkid committed May 30, 2024
1 parent a3597d4 commit 54af545
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/kickbox/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package kickbox
import (
"context"
"log"
"slices"

"github.com/carlmjohnson/requests"
)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 54af545

Please sign in to comment.