From 9ba739f475a917e3d0549293247d8b011037e221 Mon Sep 17 00:00:00 2001 From: William Morgan Date: Mon, 15 Jun 2009 12:48:20 -0400 Subject: [PATCH] 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! --- lib/sup/sent.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sup/sent.rb b/lib/sup/sent.rb index ee843c7..d4fcc2b 100644 --- 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 -- 2.45.2