Exim/spamd/sa-learn
2016-10-06 00:40:56 +02:00

6 lines
282 B
Bash

#!/usr/bin/env bash
date >> /var/log/exim4/sa-learn
find /var/vmail -type d -name '.Junk' | xargs -I junk sa-learn --spam junk/{cur,new} >> /var/log/exim4/sa-learn
find /var/vmail -type d -name '.Junk' | xargs -I junk find junk/{cur,new} -type f -delete >> /var/log/exim4/sa-learn