* [sup-devel] [PATCH] mbox: fix date format
@ 2010-07-08 12:28 Sascha Silbe
2010-07-13 2:10 ` Rich Lane
0 siblings, 1 reply; 2+ messages in thread
From: Sascha Silbe @ 2010-07-08 12:28 UTC (permalink / raw)
To: sup-devel
The date format used in all (known/common) variations is that of Unix/POSIX
asctime(), not the RFC 822 / RFC 2822 Date: header format.
Using an incorrect date format causes at least mutt, mb2md and Python
UnixMailbox (but not PortableUnixMailbox) to either reject the mailbox or show
it as empty.
References:
http://homepage.ntlworld.com./jonathan.deboynepollard/FGA/mail-mbox-formats.html
http://www.qmail.org/man/man5/mbox.html
Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org>
---
lib/sup/mbox.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/sup/mbox.rb b/lib/sup/mbox.rb
index 2bf32ea..452519d 100644
--- a/lib/sup/mbox.rb
+++ b/lib/sup/mbox.rb
@@ -140,7 +140,7 @@ class MBox < Source
need_blank = File.exists?(@filename) && !File.zero?(@filename)
File.open(@filename, "ab") do |f|
f.puts if need_blank
- f.puts "From #{from_email} #{date.rfc2822}"
+ f.puts "From #{from_email} #{date.asctime}"
yield f
end
end
--
1.7.1
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [sup-devel] [PATCH] mbox: fix date format
2010-07-08 12:28 [sup-devel] [PATCH] mbox: fix date format Sascha Silbe
@ 2010-07-13 2:10 ` Rich Lane
0 siblings, 0 replies; 2+ messages in thread
From: Rich Lane @ 2010-07-13 2:10 UTC (permalink / raw)
To: Sascha Silbe; +Cc: sup-devel
Applied to master.
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-07-13 2:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-08 12:28 [sup-devel] [PATCH] mbox: fix date format Sascha Silbe
2010-07-13 2:10 ` Rich Lane
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox