Skip to main content

MIME Tools

Detect file types and extract attachments from MIME-encoded email messages and files.

Overview

The MIME Tools package provides utilities for working with MIME (Multipurpose Internet Mail Extensions) content. Use it when you need to detect file types, extract attachments from email messages, or work with MIME-encoded content.

Key Features

  • File Type Detection - Identify file types by content analysis
  • Attachment Extraction - Extract attachments from MIME messages

Available Nodes

  • Detect File - Detect the MIME type of a file based on its content
  • Extract Attachments - Extract all attachments from a MIME-encoded message

When to Use This Package

  • Email Processing: Extract attachments from raw email messages
  • File Validation: Verify file types before processing
  • Content Analysis: Identify file formats regardless of extension
  • Security: Validate uploaded files match expected types

Typical Workflow

  1. Receive raw email message or file
  2. Detect File to identify the content type
  3. Extract Attachments to get email attachments
  4. Process each attachment based on its type

Use Cases

  • Process email attachments from IMAP/POP3 servers
  • Validate file uploads match expected MIME types
  • Extract documents from automated email workflows
  • Identify unknown file types for routing