mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-14 10:52:49 +02:00
15b80760b2
[Dovecot] Learn fuzzy when moving mails from/to junk
10 lines
323 B
Bash
Executable File
10 lines
323 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 /rspamd-sock/rspamd.sock http://rspamd/learnspam
|
|
cat ${FILE} | /usr/bin/curl -H "Flag: 11" -s --data-binary @- --unix-socket /rspamd-sock/rspamd.sock http://rspamd/fuzzyadd
|
|
|
|
exit 0
|