From 1427af73b6837df40333f3b317e9ce1f5fde83cc Mon Sep 17 00:00:00 2001 From: John Denker Date: Tue, 17 Jul 2012 07:02:45 -0700 Subject: remove bad stuff from mailbox, sa-learn it, move it to ../spam/ --- tools/mail-zap | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 tools/mail-zap (limited to 'tools/mail-zap') diff --git a/tools/mail-zap b/tools/mail-zap new file mode 100755 index 0000000..912d740 --- /dev/null +++ b/tools/mail-zap @@ -0,0 +1,13 @@ +#! /bin/bash + +if test -z "$*" ; then + exit +fi + +mail-scan +subject "$@" + +sa-learn --spam "$@" + +for file in "$@" ; do + mv "$file" "$(dirname $file)/../spam/" +done -- cgit v1.2.3