Initial commit for the rspamd spam/ham trainer

This commit is contained in:
2026-06-22 16:17:38 +02:00
commit 7bc9d7a901
18 changed files with 1071 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env sh
set -eu
python_bin="${PYTHON_BIN:-python3}"
"$python_bin" -m pip install .
echo "Installed rspamd-mail-trainer."
echo "Run: rspamd-mail-trainer --help"
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
set -eu
PYTHON_BIN="${PYTHON_BIN:-python3}"
exec "$PYTHON_BIN" -m rspamd_mail_trainer "$@"
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
set -eu
python_bin="${PYTHON_BIN:-python3}"
"$python_bin" -m pip uninstall -y rspamd-mail-trainer