Don't reinvent the email address parsing wheel

Rails already depends on the mail gem, which conveniently provides this
functionality.
Update template for new white-on-black header