# File lib/action_mailer/vendor/tmail/attachments.rb, line 9
    def has_attachments?
      multipart? && parts.any? { |part| part.header["content-type"].main_type != "text" }
    end