From 14b7add3c77a79fd46ad55a43a4051a10ebfc0b4 Mon Sep 17 00:00:00 2001 From: John Denker Date: Mon, 16 Jul 2012 15:16:43 -0700 Subject: minor upgrades --- tools/mail-scan.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tools/mail-scan.c') diff --git a/tools/mail-scan.c b/tools/mail-scan.c index 5ec2b25..56b3806 100644 --- a/tools/mail-scan.c +++ b/tools/mail-scan.c @@ -4,8 +4,14 @@ // scrutinize email // -// hint: mail-scan +from * \... +// Hint: +// mail-scan +from * | iconv -c \... // | sed 's/.*@//;s/>$//' | sort | uniq -c | sort -nr > some-junk.from-count +// +// Also: +// grep score=[34] /home/user/Maildir/new/* -l | xargs mail-scan +From | blacklist-update +// Then: +// grep score=[34] /home/user/Maildir/new/* -l | xargs mv-to -i /home/user/Maildir/spam/ #include #include /* for exit() */ -- cgit v1.2.3