I think there is a bug in auto_link_email_addresses, if an e-mail address is already linked.
This works fine: <% p = "<a href=\"mailto:name@test.com\">name@test.com</a>" %> <%= auto_link(p) %>
This fails: <% p = "<a href=\"mailto:name@test.com\">Some Other Text</a>" %> <%= auto_link(p) %>
And results in:
<a href="mailto:<a href="mailto:rname@test.com">name@test.com</
">Some Other Text</a>
Or do I overlook something?