Exim/spamd/sa-learn

6 lines
282 B
Plaintext
Raw Normal View History

2016-10-05 22:40:56 +00:00
#!/usr/bin/env bash
2016-08-15 13:38:21 +00:00
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