# File lib/sup/modes/edit-message-mode.rb, line 393 def write_message f, full=true, date=Time.now raise ArgumentError, "no pre-defined date: header allowed" if @header["Date"] f.puts format_headers(@header).first f.puts "Date: \#{date.rfc2822}\nMessage-Id: \#{@message_id}\n" if full f.puts "Mime-Version: 1.0\nContent-Type: text/plain; charset=us-ascii\nContent-Disposition: inline\nUser-Agent: Redwood/\#{Redwood::VERSION}\n" end f.puts f.puts sanitize_body(@body.join("\n")) f.puts sig_lines if full unless $config[:edit_signature] end