+ if ! formail -c < "$file"|grep -q '^List-Id'; then
+ $SPAM_REPORT < "$file" >/dev/null 2>&1;
+ fi;
+ formail -c < "$file" | grep -e '^From ' -e 'From: ' | spamassassin --add-to-blacklist >/dev/null 2>&1;
+ formail -c < "$file" | grep -e '^From ' -e 'From: ' | spamassassin --remove-from-whitelist >/dev/null 2>&1;
+ # check to see if it's still spam
+ if ! $SPAM_CHECK < "$file" >/dev/null 2>&1; then
+ # this message is still not spam; may need custom rules
+ spamc < "$file" > ~/Maildir/spam/needs_rules/cur/"$(basename "$file")" 2>/dev/null;
+ fi;