mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-14 10:52:49 +02:00
9 lines
282 B
Bash
Executable File
9 lines
282 B
Bash
Executable File
#!/bin/bash
|
|
if [[ ${2} == "learn_spam" ]]; then
|
|
/usr/bin/curl --data-binary @- http://rspamd:11334/learnspam < /dev/stdin
|
|
elif [[ ${2} == "learn_ham" ]]; then
|
|
/usr/bin/curl --data-binary @- http://rspamd:11334/learnham < /dev/stdin
|
|
fi
|
|
# Always return 0 to satisfy Dovecot...
|
|
exit 0
|