git » chasquid » commit b779941

Remove spf-check debugging tool

author Alberto Bertogli
2022-08-08 16:56:58 UTC
committer Alberto Bertogli
2022-08-08 16:56:58 UTC
parent 5bb17c7066dbbc0824126b145d5db0b72073e58f

Remove spf-check debugging tool

The spf-check debugging tool is quite primitive, rarely (if ever) used,
not tested, and has been superceded by the one in the spf library
(https://blitiri.com.ar/git/r/spf/b/master/t/cmd/spf-check/f=spf-check.go.html).

This patch removes it.

.gitignore +0 -2
Makefile +2 -5
cmd/spf-check/spf-check.go +0 -24

diff --git a/.gitignore b/.gitignore
index d3529c4..7ba3f32 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,12 +11,10 @@
 /chasquid
 /chasquid-util
 /smtp-check
-/spf-check
 /mda-lmtp
 /dovecot-auth-cli
 cmd/chasquid-util/chasquid-util
 cmd/smtp-check/smtp-check
-cmd/spf-check/spf-check
 cmd/mda-lmtp/mda-lmtp
 cmd/dovecot-auth-cli/dovecot-auth-cli
 test/util/minidns
diff --git a/Makefile b/Makefile
index aa779ba..78f6375 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ endif
 
 default: chasquid
 
-all: chasquid chasquid-util smtp-check spf-check mda-lmtp dovecot-auth-cli
+all: chasquid chasquid-util smtp-check mda-lmtp dovecot-auth-cli
 
 
 chasquid:
@@ -27,9 +27,6 @@ chasquid-util:
 smtp-check:
 	go build ${GOFLAGS} ./cmd/smtp-check/
 
-spf-check:
-	go build ${GOFLAGS} ./cmd/spf-check/
-
 mda-lmtp:
 	go build ${GOFLAGS} ./cmd/mda-lmtp/
 
@@ -60,4 +57,4 @@ install-config-skeleton:
 
 
 .PHONY: chasquid test \
-	chasquid-util smtp-check spf-check mda-lmtp dovecot-auth-cli
+	chasquid-util smtp-check mda-lmtp dovecot-auth-cli
diff --git a/cmd/spf-check/spf-check.go b/cmd/spf-check/spf-check.go
deleted file mode 100644
index 7d31b01..0000000
--- a/cmd/spf-check/spf-check.go
+++ /dev/null
@@ -1,24 +0,0 @@
-// Command line tool for playing with the SPF library.
-//
-// Not for use in production, just development and experimentation.
-//go:build !coverage
-// +build !coverage
-
-package main
-
-import (
-	"flag"
-	"fmt"
-	"net"
-
-	"blitiri.com.ar/go/spf"
-)
-
-func main() {
-	flag.Parse()
-
-	r, err := spf.CheckHostWithSender(
-		net.ParseIP(flag.Arg(0)), "", flag.Arg(1))
-	fmt.Println(r)
-	fmt.Println(err)
-}