]> git.donarmstrong.com Git - bin.git/blob - recheck_spam
have update_org_files also pull
[bin.git] / recheck_spam
1 #!/bin/bash
2
3 # these are for non-spamc setups
4 SPAM_REPORT="spamassassin --report"
5 HAM_REPORT="spamassassin --revoke"
6 SPAM_CHECK="spamassassin -e"
7
8 # these are for spamc
9 SPAM_REPORT="spamc --learntype=spam"
10 HAM_REPORT="spamc --learntype=ham"
11 SPAM_CHECK="spamc -c"
12
13 for file in "$@"; do
14     spamc < "$file" |sponge "$file" 2>/dev/null;
15 done;