sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 9ba739f475a917e3d0549293247d8b011037e221
parent 37fd2607b884859cbfd0a43d9929754d8f856f2f
Author: William Morgan <wmorgan-sup@masanjin.net>
Date:   Mon, 15 Jun 2009 12:48:20 -0400

bugfix: correct time format in sent message mbox

Use Time#asctime. Otherwise for strange locales, the mbox format is
not quite right and the splitter won't be able to read it!

Diffstat:
M lib/sup/sent.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/sup/sent.rb b/lib/sup/sent.rb
@@ -14,11 +14,11 @@ class SentManager
   def self.source_id; 9998; end
   def new_source; @source = Recoverable.new SentLoader.new; end
 
-  def write_sent_message date, from_email
+  def write_sent_message time, from_email
     need_blank = File.exists?(@fn) && !File.zero?(@fn)
     File.open(@fn, "a") do |f|
       f.puts if need_blank
-      f.puts "From #{from_email} #{date}"
+      f.puts "From #{from_email} #{time.asctime}"
       yield f
     end