Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
fix(mail_helper): remove '<' from to headers in email service requests
Browse files Browse the repository at this point in the history
  • Loading branch information
brizental committed Aug 23, 2018
1 parent e504e39 commit a0cc416
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/mail_helper.js
Expand Up @@ -53,7 +53,10 @@ module.exports = (printLogs) => {
smsLink = smsUrlMatch && smsUrlMatch[1]
}

var name = emailName(mail.headers.to)
// Workaround because the email service wraps this header in `< >`.
// See: https://github.com/mozilla/fxa-content-server/pull/6470#issuecomment-415224438
var name = emailName(mail.headers.to.replace(/\<(.*?)\>/g, '$1'))

if (vc) {
console.log('\x1B[32m', link, '\x1B[39m')
}
Expand Down

0 comments on commit a0cc416

Please sign in to comment.