Skip to content

Commit 87c32a1

Browse files
Parse disposition-notification-to header as address (#359)
1 parent 6adad57 commit 87c32a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/mail-parser.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ class MailParser extends Transform {
365365
case 'reply-to':
366366
case 'delivered-to':
367367
case 'return-path':
368+
case 'disposition-notification-to':
368369
value = addressparser(value);
369370
this.decodeAddresses(value);
370371
value = {
@@ -409,7 +410,8 @@ class MailParser extends Transform {
409410
'mime-version',
410411
'content-description',
411412
'precedence',
412-
'errors-to'
413+
'errors-to',
414+
'disposition-notification-to'
413415
];
414416

415417
headers.forEach((value, key) => {

0 commit comments

Comments
 (0)