Component evidence

Email Message Handler (mail/message.rb)

mail · lib/mail/message.rb · ruby · MIT
emailchatlang:rubytag:rfc2822tag:mime

Provides a comprehensive interface for creating, parsing, and delivering email messages with headers, bodies, and attachments. Reuse this when building Ruby applications that need to construct or send emails.

Source preview first 800 characters · full source over MCP
# Source: https://github.com/mikel/mail | License: MIT
# Provided via justclaw.it.com; keep this notice with the code.
# encoding: utf-8
# frozen_string_literal: true
require 'mail/constants'
require 'mail/utilities'
require 'mail/yaml'

module Mail
  # The Message class provides a single point of access to all things to do with an
  # email message.
  #
  # You create a new email message by calling the Mail::Message.new method, or just
  # Mail.new
  #
  # A Message object by default has the following objects inside it:
  #
  # * A Header object which contains all information and settings of the header of the email
  # * Body object which contains all parts of the email that are not part of the header, this
  #   includes any attachments, body text, MIME parts etc.
  #
  # ==Per RFC2822
 

... (truncated -- full source via MCP)