From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Randy.Dunlap" Subject: Re: Trying to use AUTHOR_DATE Date: Sun, 1 May 2005 09:57:38 -0700 Organization: OSDL Message-ID: <20050501095738.5ca03d16.rddunlap@osdl.org> References: <42730061.5010106@zytor.com> <87zmvganq9.fsf@windlord.stanford.edu> <1114848175.24014.35.camel@localhost.localdomain> <20050430124048.79119cac.froese@gmx.de> <87r7gs87a9.fsf@windlord.stanford.edu> <20050501005434.2d47131a.froese@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: froese@gmx.de, git@vger.kernel.org X-From: git-owner@vger.kernel.org Sun May 01 18:52:19 2005 Return-path: Received: from vger.kernel.org ([12.107.209.244]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DSHg1-0003jG-2w for gcvg-git@gmane.org; Sun, 01 May 2005 18:52:17 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261701AbVEAQ6I (ORCPT ); Sun, 1 May 2005 12:58:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261710AbVEAQ6I (ORCPT ); Sun, 1 May 2005 12:58:08 -0400 Received: from fire.osdl.org ([65.172.181.4]:55439 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S261701AbVEAQ5n (ORCPT ); Sun, 1 May 2005 12:57:43 -0400 Received: from gargoyle.pdx.osdl.net (fw.osdl.org [65.172.181.6]) (authenticated bits=0) by smtp.osdl.org (8.12.8/8.12.8) with ESMTP id j41Gvds3013018 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sun, 1 May 2005 09:57:39 -0700 To: Linus Torvalds In-Reply-To: X-Mailer: Sylpheed version 1.0.4 (GTK+ 1.2.10; i686-pc-linux-gnu) X-Face: SvC&!/v_Hr`MvpQ*|}uez16KH[#EmO2Tn~(r-y+&Jb}?Zhn}c:Eee&zq`cMb_[5`tT(22ms (.P84,bq_GBdk@Kgplnrbj;Y`9IF`Q4;Iys|#3\?*[:ixU(UR.7qJT665DxUP%K}kC0j5,UI+"y-Sw mn?l6JGvyI^f~2sSJ8vd7s[/CDY]apD`a;s1Wf)K[,.|-yOLmBl0 | > And I had the impression the strict checks in the original | > version were intentionally ;-) | | Btw, here's my test of every single email in my email archive (which is | not that big any more - after the SCO subpoena, I decided that I never | want to go through with that kind of crap ever again, so now it's only a | month or two of things). | | Almost everything seems to follow the RFC's or at least be close enough | that my "accept anything" ends up doing something sane, except for three | emails: | | Date: Fri, 08 Apr 2005 02:20:10 0200 -> bad | Date: Mon, 18 Apr 05 15:05:29 Hora oficial do Brasil -> bad | Date: 2002/04/11 18:29:07 -> bad | | That first one doesn't have a sign in front of the timezone (I'll fix | things up - right now I end up believing that it's "year 200"), and the | third one has the sane European date order that sorts nicely (and which | I'll also fix up). Third one is almost ISO 8601 standard date format, except that ISO uses hyphens, e.g., 2002-04-11, so I hope that the punctation is a little flexible... | The second one is funny. Not just the "Hora oficial do Brasil" (hey, I | could add it as a real timezone and my parser would do the right thing ;) | but also because my parser decides that "05" is not a year, but the day in | the month, so it doesn't see the year. | | I can fake out that year thing pretty easily ("if it starts with '0' it's | not a day of the month"), but it does show just how _strange_ stuff | there's out there. | | ("Hora" is also Swedish for "whore", so that timezone does end up being | mentally parsed _quite_ the wrong way for somebody like me who doesn't | speak spanish). --- ~Randy