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

Commit

Permalink
fix(tests): add CC suport to mail_helper (#1937) r=vbudhram
Browse files Browse the repository at this point in the history
  • Loading branch information
vladikoff committed Jun 9, 2017
1 parent 82b24e2 commit 8dfb5e3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/mail_helper.js
Expand Up @@ -78,6 +78,17 @@ module.exports = (printLogs) => {
} else {
users[name] = [mail]
}

if (mail.headers.cc) {
// Support for CC headers
var ccName = emailName(mail.headers.cc)

if (users[ccName]) {
users[ccName].push(mail)
} else {
users[ccName] = [mail]
}
}
}
)
req.pipe(mp)
Expand Down

0 comments on commit 8dfb5e3

Please sign in to comment.