Files
cloudflare_temp_email/mail-parser-wasm
Dream Hunter e35c246757 fix: mail-parser-wasm missing message/rfc822 attachments (#897)
* fix: mail-parser-wasm treat message/rfc822 attachments as regular attachments

Previously, message/rfc822 attachments (e.g. .eml files) were
recursively parsed for sub-attachments instead of being returned
directly, causing them to be silently dropped. Now all attachments
are returned regardless of type.

Bump version to 0.2.2. Add .gitignore for worker build artifacts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* chore: add missing entries to worker .gitignore

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* chore: bump mail-parser-wasm to 0.2.2 in frontend

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 02:52:13 +08:00
..

mail-parser-wasm web and cf worker

mail-parser-wasm

mail-parser-wasm usage

pnpm add mail-parser-wasm
import { parse_message } from 'mail-parser-wasm'

const parsedEmail = parse_message(rawEmail);

mail-parser-wasm build

wasm-pack build --release
wasm-pack publish

mail-parser-wasm-worker

mail-parser-wasm-worker usage

pnpm add mail-parser-wasm-worker
import { parse_message_wrapper } from 'mail-parser-wasm-worker'

const parsedEmail = parse_message_wrapper(rawEmail);

mail-parser-wasm-worker build

wasm-pack build --out-dir web --target web --release
find web/ -type f ! -name '*.json' ! -name '.gitignore' -exec cp {} worker/ \;
# modify worker/package.json version or whatever
pnpm publish worker --no-git-checks