commit bfe40c05dc6dc2656a4dde11948ff617f2fa00d6
parent c1d28bd678b87378fd3a9fc682d223fa069107f4
Author: William Morgan <wmorgan-sup@masanjin.net>
Date: Thu, 1 Oct 2009 12:36:26 -0400
bugfix: write mbox messages in RFC2822 format
Otherwise, non-en_US locales may screw up the mbox format and Sup won't be able
to read its own output.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/mbox/loader.rb b/lib/sup/mbox/loader.rb
@@ -116,7 +116,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.utc}"
+ f.puts "From #{from_email} #{date.rfc2822}"
yield f
end
end