blob: 9b26817cda6f3170fb63d904b424d3b76c1ae255 [file] [log] [blame]
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01001#!/bin/bash
2FILE=/tmp/mail$$
3cat > $FILE
4trap "/bin/rm -f $FILE" 0 1 2 3 13 15
5
6cat ${FILE} | /usr/bin/curl -s --data-binary @- --unix-socket /var/lib/rspamd/rspamd.sock http://rspamd/learnham
7cat ${FILE} | /usr/bin/curl -H "Flag: 13" -s --data-binary @- --unix-socket /var/lib/rspamd/rspamd.sock http://rspamd/fuzzyadd
8
9exit 0