summaryrefslogtreecommitdiff
path: root/tools/mail-scan.c
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2012-07-16 22:16:43 (GMT)
committerJohn Denker <jsd@av8n.com>2012-07-16 23:04:51 (GMT)
commit14b7add3c77a79fd46ad55a43a4051a10ebfc0b4 (patch)
tree201ac3911ae85a19975926b5df48c2a4cdb35d69 /tools/mail-scan.c
parent5636774abde98bcddffdec88b297c7ff322aab43 (diff)
minor upgrades
Diffstat (limited to 'tools/mail-scan.c')
-rw-r--r--tools/mail-scan.c8
1 files changed, 7 insertions, 1 deletions
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 <iostream>
#include <stdlib.h> /* for exit() */