diff options
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() */ |