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