From: William Morgan Date: Mon, 15 Jun 2009 16:48:20 +0000 (-0400) Subject: bugfix: correct time format in sent message mbox X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=9ba739f475a917e3d0549293247d8b011037e221;p=sup 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! --- 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