`mail` approach makes you depend on widely used approach which is likely to have very few (if any at all) issues because most of them were already sorted out by other people. Regexps and other homegrown solutions are more likely to introduce errors. It's just a matter of probability.