7 lines
235 B
Plaintext
7 lines
235 B
Plaintext
|
#!/bin/bash
|
||
|
if [[ ${1} == "learn_spam" ]]; then
|
||
|
/usr/bin/curl --data-binary @- http://rspamd:11334/learnspam < /dev/stdin
|
||
|
elif [[ ${1} == "learn_ham" ]]; then
|
||
|
/usr/bin/curl --data-binary @- http://rspamd:11334/learnham < /dev/stdin
|
||
|
fi
|