We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac11f78 commit 80ba89eCopy full SHA for 80ba89e
lib/simple-parser.js
@@ -87,7 +87,7 @@ module.exports = (input, options, callback) => {
87
88
parser.on('end', () => {
89
['subject', 'references', 'date', 'to', 'from', 'to', 'cc', 'bcc', 'message-id', 'in-reply-to', 'reply-to'].forEach(key => {
90
- if (mail.headers.has(key)) {
+ if (mail.headers?.has(key)) {
91
mail[key.replace(/-([a-z])/g, (m, c) => c.toUpperCase())] = mail.headers.get(key);
92
}
93
});
0 commit comments