2017-04-03 20:06:49 +02:00
|
|
|
#!/bin/bash
|
2018-07-29 00:35:54 +02:00
|
|
|
FILE=/tmp/mail$$
|
|
|
|
cat > $FILE
|
|
|
|
trap "/bin/rm -f $FILE" 0 1 2 3 13 15
|
|
|
|
|
2024-08-07 09:50:57 +02:00
|
|
|
cat ${FILE} | /usr/bin/curl -H "Flag: 13" -s --data-binary @- --unix-socket /var/lib/rspamd/rspamd.sock http://rspamd.${COMPOSE_PROJECT_NAME}_mailcow-network/fuzzydel
|
|
|
|
cat ${FILE} | /usr/bin/curl -s --data-binary @- --unix-socket /var/lib/rspamd/rspamd.sock http://rspamd.${COMPOSE_PROJECT_NAME}_mailcow-network/learnspam
|
|
|
|
cat ${FILE} | /usr/bin/curl -H "Flag: 11" -s --data-binary @- --unix-socket /var/lib/rspamd/rspamd.sock http://rspamd.${COMPOSE_PROJECT_NAME}_mailcow-network/fuzzyadd
|
2018-07-29 00:35:54 +02:00
|
|
|
|
2017-04-03 20:06:49 +02:00
|
|
|
exit 0
|