diff options
author | John Denker <jsd@av8n.com> | 2012-07-16 15:16:43 -0700 |
---|---|---|
committer | John Denker <jsd@av8n.com> | 2012-07-16 16:04:51 -0700 |
commit | 14b7add3c77a79fd46ad55a43a4051a10ebfc0b4 (patch) | |
tree | 201ac3911ae85a19975926b5df48c2a4cdb35d69 /tools/mail-scan.c | |
parent | 5636774abde98bcddffdec88b297c7ff322aab43 (diff) |
minor upgrades
Diffstat (limited to 'tools/mail-scan.c')
-rw-r--r-- | tools/mail-scan.c | 8 |
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() */ |