{"success":true,"data":{"ext":"mime","name":"MIME","description":"MIME (Multipurpose Internet Mail Extensions) is an Internet message format standardized by the IETF for representing email content and attachments. It is used by mail clients, servers, and archival tools to store, transmit, and encapsulate messages in a structured form, including multipart bodies and embedded headers. The format is well established and generally safe, although messages may contain links or attachments that should be handled cautiously from untrusted sources.","mime":["message/rfc822"],"risk_level":"Safe","signatures":[{"hex":"23 21 20 72 6E 65 77 73","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"4E 23 21 20 72 6E 65 77 73","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"46 6F 72 77 61 72 64 20 74 6F","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"50 69 70 65 20 74 6F","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"58 2D 4D 61 69 6C 65 72 3A","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"58 2D 4E 6F 74 65 73 2D 49 74 65 6D 3A","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":["eml"],"usage":{"python":"def is_mime(file_path: str) -> bool:\n    \"\"\"Check if file is a valid MIME by magic bytes.\"\"\"\n    signature = bytes([0x23, 0x21, 0x20, 0x72, 0x6E, 0x65, 0x77, 0x73])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isMIME(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x23, 0x21, 0x20, 0x72, 0x6E, 0x65, 0x77, 0x73]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsMIME(data []byte) bool {\n    signature := []byte{0x23, 0x21, 0x20, 0x72, 0x6E, 0x65, 0x77, 0x73}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"},"category":"Email & PIM"}}