papnkukn / eml-format

RFC 822 EML file format parser and builder
MIT License
84 stars 51 forks source link

RFC 1341: default 'Content-Transfer-Encoding' to 7bit #18

Open spencermw opened 4 years ago

spencermw commented 4 years ago

https://tools.ietf.org/html/rfc1341

"Content-Transfer-Encoding: 7BIT" is assumed if the Content-Transfer-Encoding header field is not present.

Currently, the library will crash with TypeError: Cannot read property 'startsWith' of undefined if the Content-Transfer-Encoding header is missing.