Subject: [sup-talk] Bug: store_message writes invalid From lines with locales set

From: [email-masked] (Gregor Hoffleit)
Date: Thu, 01 Oct 2009 17:47:17 +0200

Obviously store_message uses the current locale settings to dump the
date into the From line (loader.rb, line 179):

      f.puts "From #{from_email} #{date.utc}"

The result: Using LANG=de_DE, sup crashed on me today when I had sent my
first mail of October. Problem was that sup failed to grok the localized
abbreviated month name ("Okt") in the From line:

    From gregor at hoffleit.de Do Okt 01 14:39:43 UTC 2009

which in turn was written by loader.rb (eat your own food, you know).

Everything worked fine for me in August and September, since those month
names are spelled the same in German and English ;-).

Regards,
    Gregor Hoffleit

---

From: [email-masked] (William Morgan)
Date: Thu, 01 Oct 2009 09:38:36 -0700

>       f.puts "From #{from_email} #{date.utc}"

Whoops. That should be date.rfc2822. I've fixed in git and this will go
out in 0.9.

> Everything worked fine for me in August and September, since those
> month names are spelled the same in German and English ;-).

You expect your email client to work for more than two months a year?
-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (Gregor Hoffleit)
Date: Fri, 02 Oct 2009 11:25:04 +0200

* William Morgan <wmorgan-sup at masanjin.net> [Thu Oct 01 18:38:36 +0200 2009]
> You expect your email client to work for more than two months a year?

Ok. I admit the right way to fix this would have been to take a time of
absence in the months of March, May, October and December. Should have
thought about that before complaining ;-).

Thanks for the quick fix,
    Gregor