mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-05-07 07:22:42 +08:00
* 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>
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