mailparser
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -365,2 +365,3 @@ 'use strict'; | ||
newNode.isAttachment = !['text/plain', 'text/html'].includes(contentType) || newNode.disposition !== 'inline'; | ||
@@ -569,3 +570,3 @@ newNode.encoding = ['quoted-printable', 'base64'].includes(encoding) ? encoding : 'binary'; | ||
if (node.disposition === 'attachment') { | ||
if (node.isAttachment) { | ||
@@ -620,3 +621,3 @@ let contentType = node.contentType; | ||
} else if (node.disposition === 'inline') { | ||
} else if(node.disposition === 'inline') { | ||
let chunks = []; | ||
@@ -700,3 +701,3 @@ let chunklen = 0; | ||
let formatSingleLevel = addresses => addresses.map(address => { | ||
let str = ''; | ||
let str = '<span class="mp_address_group">'; | ||
if (address.name) { | ||
@@ -716,3 +717,3 @@ str += '<span class="mp_address_name">' + he.encode(address.name) + (address.group ? ': ' : '') + '</span>'; | ||
} | ||
return str; | ||
return str + '</span>'; | ||
}).join(', '); | ||
@@ -719,0 +720,0 @@ return formatSingleLevel([].concat(value || [])); |
{ | ||
"name": "mailparser", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Parse e-mails", | ||
@@ -17,3 +17,3 @@ "main": "index.js", | ||
"libmime": "3.1.0", | ||
"mailsplit": "3.1.2", | ||
"mailsplit": "4.0.0", | ||
"marked": "0.3.6" | ||
@@ -20,0 +20,0 @@ }, |
@@ -11,3 +11,3 @@ # MailParser | ||
> Starting from v2.0.0 MailParser is licensed under the [European Union Public License 1.1](http://ec.europa.eu/idabc/eupl.html). In general, EUPLv1.1 is a _copyleft_ license compatible with GPLv2, so if you're OK using GPL then you should be OK using MailParser. Previous versions of MailParser are licensed under the MIT license. | ||
> This module is part of the [Nodemailer bundle](https://nodemailer.com/about/pricing/). Starting from v2.0.0 MailParser is licensed under the [European Union Public License 1.1](http://ec.europa.eu/idabc/eupl.html). In general, EUPLv1.1 is a _copyleft_ license compatible with GPLv2, so if you're OK using GPL then you should be OK using MailParser. Previous versions of MailParser are licensed under the MIT license. | ||
@@ -14,0 +14,0 @@ ## Install |
55778
849
+ Addedmailsplit@4.0.0(transitive)
- Removedlibmime@2.1.3(transitive)
- Removedmailsplit@3.1.2(transitive)
Updatedmailsplit@4.0.0