fix: stop crafted .eml headers from stalling the parser by moving to postal-mime 4.2

This commit is contained in:
Linus Rath
2026-10-31 16:02:01 +01:00
parent 7e60d32449
commit 368c90ce3e
6 changed files with 139 additions and 90 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import PostalMime from 'postal-mime';
// React Native's Blob only takes strings and other Blobs; building one from an
// ArrayBuffer or typed array throws. postal-mime used to join every decoded
// part through such a Blob, so an .eml with an attachment could not be
// previewed on the device (patches/postal-mime+3.0.0.patch).
// previewed on the device (patches/postal-mime+4.2.0.patch).
class ReactNativeBlob {
constructor(parts: unknown[] = []) {
if (parts.some((p) => p instanceof ArrayBuffer || ArrayBuffer.isView(p))) {
+1 -1
View File
@@ -150,7 +150,7 @@
},
{
"name": "postal-mime",
"version": "3.0.0",
"version": "4.2.0",
"license": "MIT-0",
"url": "https://postal-mime.postalsys.com"
},