postalsys / postal-mime

Email parser for browser and serverless environments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update RFC

bwaldbaum opened this issue · comments

Hi @andris9 - Thank you for building postal-mime, it's very useful! In the readme.md it says that it complies with RFC 822. That is an old standard from 1982. The new standard is RFC 5322.

Can you update postal-mime to comply with 5322? Or are you accepting pull requests if others want to make this update to the package?

Thank you,
Brett

It's rfc822 as in message/rfc822 mime type. It does not change any time the standard gets an update.

According to https://www.[ietf.org/rfc/rfc5322.txt](https://www.ietf.org/rfc/rfc5322.txt) it says rfc822 was superseded by rfc2822, which was superseded by rfc5322. Most .eml files today are saved using RFC 5322. @andris9 Would you accept a PR where it's updated to use the latest standard (RFC 5322)?

Just to point out - by rfc822 I do not mean that postal-mime only supports the outdated RFC822 standard. It means that the email corresponds to the message/rfc822 format. There is no such thing as message/rfc5322. All eml files are always message/rfc822.