Is there any chance of SendGrid can use https://www.npmjs.com/package/mailparser-mit instead to get around this uncertainty?
NodeMailer v0.6.1 has a dep of MimeLib ^0.2.19 (https://github.com/nodemailer/mailparser/blob/v0.6.1/package.json#L20)
Therefore, if we preemptively downgrade mimelib to v0.3.0 in our projects package.json via yarn's resolution feature via:
"resolutions": {
"mimelib": "0.3.0"
}
Then all version of mimelib will refer to the MIT version and we resolve the problem.
Thanks!
I just upgraded mailparser and it does not uses mimelib anymore but the home-made libmime which uses MIT licence.
https://github.com/nodemailer/mailparser/blob/v2.3.4/package.json#L15
https://github.com/nodemailer/libmime/blob/master/LICENSE
Issue: https://github.com/sendgrid/sendgrid-nodejs/issues/762
PR: https://github.com/sendgrid/sendgrid-nodejs/pull/763
Most helpful comment
I just upgraded mailparser and it does not uses
mimelibanymore but the home-madelibmimewhich uses MIT licence.https://github.com/nodemailer/mailparser/blob/v2.3.4/package.json#L15
https://github.com/nodemailer/libmime/blob/master/LICENSE
Issue: https://github.com/sendgrid/sendgrid-nodejs/issues/762
PR: https://github.com/sendgrid/sendgrid-nodejs/pull/763