mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-16 10:59:39 +02:00
4396be2938
[Compose] Remove volume for Rspamd socket [Web] Do not exit loop on fuzzy errors when learning a message as spam
10 lines
328 B
Bash
Executable File
10 lines
328 B
Bash
Executable File
#!/bin/bash
|
|
FILE=/tmp/mail$$
|
|
cat > $FILE
|
|
trap "/bin/rm -f $FILE" 0 1 2 3 13 15
|
|
|
|
cat ${FILE} | /usr/bin/curl -s --data-binary @- --unix-socket /var/lib/rspamd/rspamd.sock http://rspamd/learnham
|
|
cat ${FILE} | /usr/bin/curl -H "Flag: 13" -s --data-binary @- --unix-socket /var/lib/rspamd/rspamd.sock http://rspamd/fuzzyadd
|
|
|
|
exit 0
|