traskowski
Verified User
- Joined
- Nov 13, 2012
- Messages
- 59
I think that something like that (but for me still don't work):
Code:
#!/bin/bash
inputmail=`/usr/bin/cat`
sudo bash -c 'echo "${inputmail}" | rspamc -h /var/run/rspamd/rspamd_controller.sock learn_spam'