[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-devel] [PATCH] Fix problem with time parsing



Excerpts from William Morgan's message of Tue May 10 18:45:23 +0100 2011:
> Reformatted excerpts from Hamish's message of 2011-05-02:
> > If a message has a date with month first and day second, then if the
> > day is greater than 12, heliotrope crashes. This patch catches the
> > error, and tries again after swapping the day and month.
> 
> Is this a legitimate email message? Producing rfc2822-compliant date
> headers is one of the few things that everyone seems capable of doing
> besides spambots. I'm tempted to take the Sup approach of forging a date
> header, or giving up on the email, if it's unparseable.

Sadly it was not spam, but an email from staples (UK) about some stuff I
bought from then online. So sup should not barf on it, but forging a
date header would be fine by me. Though "now" might be better than date
zero, which I think is what sup normally does otherwise ...

Hamish
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel