[Chugalug] UTF8 Trick

Mike Harrison cluon at geeklabs.com
Wed Jun 26 12:15:48 UTC 2013

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:

open(IN,"bad") ; 
  $filename = substr($_,0,70) ;
  print "Nuking $filename\n" ;
  unlink("$filename*") ; 
} ;

More information about the Chugalug mailing list