tweaking email parsing
some improvements for robustness
basic implementation of clustering