aboutsummaryrefslogtreecommitdiff
path: root/host
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2016-01-04 21:21:55 +0100
committerjaseg <code@jaseg.net>2016-01-04 21:21:55 +0100
commit3f1a8bd116e99bb727cf1103a4ed7be394957ad7 (patch)
tree1d38ed053bcb65207c82c5e44f16e4ca0e576c06 /host
parentcae13443bce201ccae54fb0aa99b44a008eb9d4d (diff)
downloadmatelight-3f1a8bd116e99bb727cf1103a4ed7be394957ad7.tar.gz
matelight-3f1a8bd116e99bb727cf1103a4ed7be394957ad7.tar.bz2
matelight-3f1a8bd116e99bb727cf1103a4ed7be394957ad7.zip
host: Add spam filter sample
Diffstat (limited to 'host')
-rw-r--r--host/secret_sauce.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/host/secret_sauce.py b/host/secret_sauce.py
new file mode 100644
index 0000000..bf183ac
--- /dev/null
+++ b/host/secret_sauce.py
@@ -0,0 +1,7 @@
+
+class SpamError(ValueError):
+ def __str__(self):
+ return ' '.join(self.args)
+
+def check_spam(addr, data):
+ pass