chiark
/
gitweb
/
~mdw
/
newsgate
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
addrcheck: Check incoming mail for valid mailbox names.
[newsgate]
/
bin
/
addrcheck
diff --git a/bin/addrcheck
b/bin/addrcheck
new file mode 100755
(executable)
index 0000000..
ca6f3fb
--- /dev/null
+++ b/
bin/addrcheck
@@ -0,0
+1,10
@@
+#! /bin/sh
+
+set -e
+kind=${1?kind}
+tail=${2?tail}
+if cdb -q groups.cdb "$kind:$tail" >/dev/null 2>&1; then
+ echo +
+else
+ echo "-bad tag $tail"
+fi