papnkukn / eml-format

RFC 822 EML file format parser and builder
MIT License
88 stars 53 forks source link

failed getting attachment name from Content-Disposition #19

Open classigit opened 4 years ago

classigit commented 4 years ago

I have an eml with Content-Disposition that looks like this:

Content-Disposition: attachment; filename="encrypted.7z"; size=16690;
    creation-date="Tue, 17 Mar 2020 08:09:26 GMT";
    modification-date="Sun, 29 Mar 2020 12:48:38 GMT"

and the library fails to find a match: https://github.com/papnkukn/eml-format/blob/master/lib/eml-format.js#L540