I've been doing this for a few months now, watching it run, and I've been
amazed by the accuracy of this trick. The people I normally would want to talk to on
this address, don't send mail with UTF8 characters. I run this before
pulling up pine via shell to read my mail.
A simple shell in my user directory:
grep --color='auto' -P -n "[\x80-\xFF]" Maildir/cur/*
grep -P "[\x80-\xFF]" Maildir/cur/* >bad
perl ./nukebad.pl
Nukebad is simple:
#!/usr/bin/perl
open(IN,"bad") ;
while(<IN>){
$filename = substr($_,0,70) ;
print "Nuking $filename\n" ;
unlink("$filename*") ;
} ;