{
  "_id": ObjectId("..."),         // MongoDB auto-generated ID
  "message_id": "unique-message-id",  // Unique identifier for the email
  "thread_id": "thread-id",           // Optional: Group of related messages
  "subject": "Subject of the email",
  "from": {
    "name": "Sender Name",              // Name of the sender
    "email": "sender@example.com"        // Sender's email address
  },
  "to": [                               // List of recipients
    {
      "name": "Recipient Name",
      "email": "recipient@example.com"
    }
  ],
  "cc": [                               // List of CC recipients (optional)
    {
      "name": "CC Name",
      "email": "cc@example.com"
    }
  ],
  "bcc": [                              // List of BCC recipients (optional)
    {
      "name": "BCC Name",
      "email": "bcc@example.com"
    }
  ],
  "date": ISODate("2024-11-26T12:00:00Z"),  // Date the email was sent
  "headers": {                          // Raw headers from the email
    "X-Priority": "3",
    "Content-Type": "multipart/alternative; boundary=\"boundary\"",
    "X-Mailer": "Mailer XYZ"
  },
  "body": {                             // The body of the email, with parts if multipart
    "text": "Plain text body content",  // Plain text part (if any)
    "html": "<p>HTML body content</p>", // HTML part (if any)
    "parts": [                          // List of parts for multipart emails
      {
        "content_type": "text/plain",
        "content_transfer_encoding": "base64",
        "content": "base64-encoded-content-here"
      },
      {
        "content_type": "text/html",
        "content_transfer_encoding": "base64",
        "content": "base64-encoded-html-content-here"
      }
    ]
  },
  "attachments": [                      // Attachments in the email
    {
      "filename": "file1.pdf",
      "content_type": "application/pdf",
      "content_transfer_encoding": "base64",
      "content": "base64-encoded-file-content"
    },
    {
      "filename": "image1.jpg",
      "content_type": "image/jpeg",
      "content_transfer_encoding": "base64",
      "content": "base64-encoded-image-content"
    }
  ],
  "flags": {                            // Optional flags for internal tracking
    "read": false,
    "spam": false
  },
  "received_timestamp": ISODate("2024-11-26T12:01:00Z") // Time the email was received (optional)
}