]> git.cworth.org Git - sup/commitdiff
when writing mbox files, output From_ line date as utc
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Sun, 16 Aug 2009 21:01:45 +0000 (17:01 -0400)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Sun, 16 Aug 2009 21:01:45 +0000 (17:01 -0400)
Otherwise, parsing the From_ lines later will fail!

lib/sup/mbox/loader.rb

index 831c71705ed11f8dab9a781c323ff2e5b2fd04d3..ea277cf0f80ffa41397484a92a6940cb468dd0a2 100644 (file)
@@ -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