moonmime

    Byte-preserving MIME security, gateway, and forensic infrastructure

    mime
    email
    security
    forensics
    gateway
    Download zip
    Author
    Version
    0.3.0
    License
    Apache-2.0
    Last updated
    12 hours ago
    Downloads
    11

    Dependencies

    #MoonMIME

    Bounded, byte-preserving MIME security inspection for MoonBit.

    let message = @moonmime.parse(
    b"Subject: hello\r\nContent-Type: text/plain\r\n\r\nMoonBit",
    )
    inspect(message.root.media_type.essence(), content="text/plain")

    v0.3 adds two runnable upper-layer integrations to the deterministic security audit layer: a mail-gateway policy adapter that emits batch JSONL decisions, and a forensic sidecar that binds the exact message and attachment source regions with SHA-256. Both are portable library packages with Native reference CLIs and cross-platform end-to-end verification.

    The parser and integration packages do no network or filesystem I/O. Separate Native CLIs inspect or audit local .eml files, evaluate gateway policy, and emit forensic manifests without decoding or extracting attachments.

    See the repository README for the full guide, scope, resource limits, security model, standards matrix, and testing instructions. Licensed under Apache-2.0.

    audit

    Parse and audit untrusted message structure without decoding attachments.

    audit_json

    Parse and return stable moonmime.audit.v1 JSON for security pipelines.

    decode_body

    Decode a selected entity body after validating its source range.

    edge_limits

    Re-export the smaller edge-oriented limits through the root package.

    inspect_json

    Parse and return the stable v1 JSON inspection report.

    inspect_text

    Parse and return the human-oriented entity summary.

    parse

    Parse with secure resource defaults and strict RFC-oriented behavior.

    secure_limits

    Re-export the secure default limits through the root package.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io