From 7a9fd216f3acbab30ea4f6f9de1fad33de1f05a1 Mon Sep 17 00:00:00 2001 From: William Morgan Date: Sun, 16 Aug 2009 17:01:45 -0400 Subject: [PATCH] when writing mbox files, output From_ line date as utc Otherwise, parsing the From_ lines later will fail! --- lib/sup/mbox/loader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sup/mbox/loader.rb b/lib/sup/mbox/loader.rb index 831c717..ea277cf 100644 --- a/lib/sup/mbox/loader.rb +++ b/lib/sup/mbox/loader.rb @@ -113,7 +113,7 @@ class Loader < Source need_blank = File.exists?(@filename) && !File.zero?(@filename) File.open(@filename, "a") do |f| f.puts if need_blank - f.puts "From #{from_email} #{date}" + f.puts "From #{from_email} #{date.utc}" yield f end end -- 2.45.2