Skip to content

Commit

Permalink
Parse disposition-notification-to header as address (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyalBingBong authored Feb 29, 2024
1 parent 6adad57 commit 87c32a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/mail-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ class MailParser extends Transform {
case 'reply-to':
case 'delivered-to':
case 'return-path':
case 'disposition-notification-to':
value = addressparser(value);
this.decodeAddresses(value);
value = {
Expand Down Expand Up @@ -409,7 +410,8 @@ class MailParser extends Transform {
'mime-version',
'content-description',
'precedence',
'errors-to'
'errors-to',
'disposition-notification-to'
];

headers.forEach((value, key) => {
Expand Down

0 comments on commit 87c32a1

Please sign in to comment.