]> git.cworth.org Git - sup/commitdiff
bugfix: save as drafts and signatures
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 13 Jun 2007 00:57:42 +0000 (00:57 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 13 Jun 2007 00:57:42 +0000 (00:57 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@455 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/modes/edit-message-mode.rb

index 866a82f2cdf39fbc25a7c10ca331f61858b8f990..1b2d72b340108fff9cd85a4491bcca412f4cae29 100644 (file)
@@ -147,11 +147,11 @@ protected
     BufferManager.flash "Saved for later editing."
   end
 
-  def write_message f, full_header=true, date=Time.now
+  def write_message f, full=true, date=Time.now
     raise ArgumentError, "no pre-defined date: header allowed" if header["Date"]
     f.puts header_lines(header)
     f.puts "Date: #{date.rfc2822}"
-    if full_header
+    if full
       f.puts <<EOS
 Mime-Version: 1.0
 Content-Type: text/plain; charset=us-ascii
@@ -162,7 +162,7 @@ EOS
 
     f.puts
     f.puts body.map { |l| l =~ /^From / ? ">#{l}" : l }
-    f.puts sig_lines
+    f.puts sig_lines if full
   end  
 
 private