commit 7a9fd216f3acbab30ea4f6f9de1fad33de1f05a1
parent 95eaf6e03568d9e33adb32b721e8b52b70a73ff6
Author: William Morgan <wmorgan-sup@masanjin.net>
Date: Sun, 16 Aug 2009 17:01:45 -0400
when writing mbox files, output From_ line date as utc
Otherwise, parsing the From_ lines later will fail!
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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