Added automatic email detection

The regular expression for detecting emails could be a bit better but it is rather liberal and works.