# File lib/mail/message.rb, line 1807 def without_attachments! return self unless has_attachments? parts.delete_if { |p| p.attachment? } body_raw = if parts.empty? '' else body.encoded end @body = Mail::Body.new(body_raw) self end