Date: Wed, 19 Jul 2006 16:25:03 +1000 From: Sean Winn <sean@gothic.net.au> To: Lyndon Nerenberg <lyndon@orthanc.ca> Cc: freebsd-isp@freebsd.org, Darren Pilgrim <darren.pilgrim@bitfreak.org>, "David J. Orman" <ormandj@corenode.com> Subject: Re: Fix dates via IMAP on messages Message-ID: <42F40A06-5F66-4238-A6C0-F46FA9C0106D@gothic.net.au> In-Reply-To: <20060718235817.H45271@orthanc.ca> References: <ca17c8974fc5.44bbb83c@corenode.com> <20060718113009.L43660@orthanc.ca> <44BDC415.6050502@bitfreak.org> <20060718235817.H45271@orthanc.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
It is far from trivial; there's a huge variety of just completely weird/ambiguous date formats placed in Date:, usually by spamware (time zone non-existent or invalid? times that don't even exist due to DST? 01/02/2005 - is that Feb 1 or Jan 2? Guess by time zone ... or is 'EST' US or AU EST?). It'd be great if they were the only source - tag them at epoch, and they all get sorted out of the way. Unfortunately, there's a bunch of broken mail servers/clients out there just as bad, from people who've never read the RFCs. Trusting the Received header placed by your own mail server is usually a better idea - it's at least consistent, and matches what should be the time stamp on the maildir files rather than some clients idea of time. I wish I'd thought of it during migration to courier I had to do. On 19/07/2006, at 4:01 PM, Lyndon Nerenberg wrote: >> It's far from trivial using the Date header. > > Oh bugger off. Rick Adams' getdate.y can handle pretty much > anything you throw at it. Face it: it dealt with all the crap > bnews threw at it for close to two decades. > > --lyndon > _______________________________________________ > freebsd-isp@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-isp > To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42F40A06-5F66-4238-A6C0-F46FA9C0106D>