php / pecl-mail-mailparse

Email message manipulation
http://pecl.php.net/package/mailparse
Other
28 stars 30 forks source link

Fix #73110: Mails with unknown MIME version are treated as plain/text #18

Closed cmb69 closed 3 years ago

cmb69 commented 3 years ago

We are already liberal regarding a missing MIME version header, but not for versions other than 1.0. However, there are no other MIME versions, and it is somewhat unlikely that there ever will[1]. Thus, we treat an unknown MIME version like we treat a missing MIME version, i.e. we assume 1.0.

[1] https://wellecks.wordpress.com/tag/mime-version/

cmb69 commented 3 years ago

If there are no objections, I'll merge this in a week.