andris9/Nodemailer — Issue #48: subject is not escaped
Author: coolaj86
Created: 2011-10-25 19:56:19+00:00
State: open

Use Case:

subject = '[Support] ' + message.slice(0, 40) + '...'

Suppose that `message` is

"Hey,\nBob here."

Characters such as newlines which are not allowed in the subject should be escaped or replaced

"Hey, Bob here." // preferred

or

"Hey,\\nBob here." // accurate