diff options
author | John Denker <jsd@av8n.com> | 2012-07-17 07:02:45 -0700 |
---|---|---|
committer | John Denker <jsd@av8n.com> | 2012-07-17 08:07:12 -0700 |
commit | d0fa5d6b32ee1d2ea0b29b73dd33eae29bf223c7 (patch) | |
tree | cbbbf34a27acec4a32151902bc174b6da2385368 /tools | |
parent | 66ade4b4d9c74fbe40981015cbbb98f2b3320c31 (diff) |
remove bad stuff from mailbox, sa-learn it, move it to ../spam/
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/mail-zap | 13 |
1 files changed, 13 insertions, 0 deletions
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 |