# File lib/mail/message.rb, line 1714 def to_yaml ready_to_send! hash = {} header.fields.each do |field| hash[field.name] = field.value end hash['subject'] = subject hash['body'] = body.encoded(content_transfer_encoding) hash.to_yaml end