Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] Bug: store_message writes invalid From lines with locales set
@ 2009-10-01 15:47 Gregor Hoffleit
  2009-10-01 16:38 ` William Morgan
  0 siblings, 1 reply; 3+ messages in thread
From: Gregor Hoffleit @ 2009-10-01 15:47 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [sup-talk] Bug: store_message writes invalid From lines with locales set
  2009-10-01 15:47 [sup-talk] Bug: store_message writes invalid From lines with locales set Gregor Hoffleit
@ 2009-10-01 16:38 ` William Morgan
  2009-10-02  9:25   ` Gregor Hoffleit
  0 siblings, 1 reply; 3+ messages in thread
From: William Morgan @ 2009-10-01 16:38 UTC (permalink / raw)


Reformatted excerpts from Gregor Hoffleit's message of 2009-10-01:
>       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>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [sup-talk] Bug: store_message writes invalid From lines with locales set
  2009-10-01 16:38 ` William Morgan
@ 2009-10-02  9:25   ` Gregor Hoffleit
  0 siblings, 0 replies; 3+ messages in thread
From: Gregor Hoffleit @ 2009-10-02  9:25 UTC (permalink / raw)


* William Morgan <wmorgan-sup at masanjin.net> [Thu Oct 01 18:38:36 +0200 2009]
> > 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?

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-10-02  9:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-01 15:47 [sup-talk] Bug: store_message writes invalid From lines with locales set Gregor Hoffleit
2009-10-01 16:38 ` William Morgan
2009-10-02  9:25   ` Gregor Hoffleit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox