moonmime

    Byte-preserving MIME security, gateway, and forensic infrastructure

    mime
    email
    security
    forensics
    gateway
    Download zip
    Author
    Version
    0.4.0
    License
    Apache-2.0
    Last updated
    15 days ago
    Downloads
    97

    #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")

    Version 0.4.0 adds raw/decoded fingerprint inventories, forensic manifest verification, custom gateway rules and quota-checked batch decisions. A separate consumer module and development-only CPython/MailParser differential runner make the integration reproducible.

    The parser and integration packages do no network or filesystem I/O. Separate Native CLIs inspect/audit local .eml, evaluate gateway policy and emit/recheck forensic manifests. The new evidence inventory decodes under shared budgets and returns fingerprints, without writing attachment files.

    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