Statistical spam filter written in PHP