@radzor/inbox-parser
Parse raw email (MIME format) into structured data. Extract headers, body (HTML and text), attachments, and metadata from RFC 2822 / MIME messages with no external dependencies.
Emailv0.1.0typescriptpythonServeremailmimeparserinboxattachmentrfc2822by Radzor
Install
View source on GitHub →$npx radzor@latest add inbox-parser
⚠ Constraints: No external dependencies — pure TypeScript MIME parser. Handles multipart/mixed, multipart/alternative, and nested multipart. Base64 and quoted-printable decoding are supported. Very large emails (>50MB) may cause high memory usage.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| maxAttachmentSize | number | 10485760 | Maximum attachment size in bytes (default: 10 MB). Larger attachments are skipped. |
| decodeCharsets | boolean | true | Whether to decode non-UTF-8 charsets in headers and body parts. |
maxAttachmentSizenumber
Maximum attachment size in bytes (default: 10 MB). Larger attachments are skipped.
default: 10485760
decodeCharsetsboolean
Whether to decode non-UTF-8 charsets in headers and body parts.
default: true
Outputs
| Name | Type | Description |
|---|