diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-11-15 22:53:03 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-11-15 22:53:03 +0000 |
commit | 198661ce06349896a36011027fd0cde182a577da (patch) | |
tree | df6aa5a7978ff3f9349866584792ee1db059422c /scripts/sa-learn | |
parent | Start less httpd services (diff) | |
download | config-198661ce06349896a36011027fd0cde182a577da.tar.bz2 config-198661ce06349896a36011027fd0cde182a577da.tar.xz config-198661ce06349896a36011027fd0cde182a577da.zip |
Learn ham and spam after a period of days
Diffstat (limited to 'scripts/sa-learn')
-rwxr-xr-x | scripts/sa-learn | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/sa-learn b/scripts/sa-learn index 72200b5..093b5a7 100755 --- a/scripts/sa-learn +++ b/scripts/sa-learn @@ -1,4 +1,6 @@ #!/bin/bash -sa-learn --spam /home/*/.maildir/.Junk/{cur,new}/* > /dev/null +# Junk is moved to trash after a week; assume I've sorted stuff after 4 days +find /home/*/.maildir/.Trash/cur -type f -mtime -4 | xargs sa-learn --ham > /dev/null +find /home/*/.maildir/.Junk/cur -type f -mtime -4 | xargs sa-learn --spam > /dev/null |