Gossamer Forum
Home : Products : Gossamer Forum : Development, Plugins and Globals :

Bug in converting date in MailArc

Quote Reply
Bug in converting date in MailArc
Hi together,

I import mbox archive files and there are some wired date formats
wich get not right converted. There are some regex in the MailArc like:

# Sat, 28 Jul 2001 08:44:00 -0700
# Sat, 28 Jul 2001 08:44:00 EST
# Sat, 28 Jul 2001 08:44:00 "EST"
# Sat, 21 Jul 01 19:07:20
# 28 Jul 2001 14:57:07 -0000
# 28 Jul 2001 14:57:07 GMT
# 28 Jul 2001 14:57:07 "GMT"
# 20 May 01 6:33:30 PM

There are some other used formats like:

Date: Sun Aug 10 10:52:46 2003

Can anybody tell me what's the regex for this?
Alex, is it possible to add this regex to the
the MailArc parse_date method?
Otherwise the post date is the date of importing
via archive.pl

I'm not shure, but I think that's also the case
in the lists forum e.g. see
http://gossamer-threads.com/..._string=coffee;#1205

The header of this message is:

From sidnei at plone.org Sat Aug 9 20:17:24 2003
From: sidnei at plone.org (Sidnei da Silva)
Date: Sun Aug 10 10:52:46 2003
Subject: [Zope-Annce] Archetypes 1.0 Released
Message-ID: <1060467444.3f3572f4d18ca@webmail.redesul.com.br>

and the posted date in the forum is:

Aug 9, 2003, 3:17 PM

That's the date which the mail was imported via a import script.
I think a list archive should always show the same real posting date.
An not different dates in mails, news channels and list archives.

Perhaps I'm missed something and somebody can point me
to the right direction.

Thanks Roger
Subject Author Views Date
Thread Bug in converting date in MailArc projekt01gmbh 2817 Aug 8, 2004, 7:02 PM
Post Re: [projekt01gmbh] Bug in converting date in MailArc
projekt01gmbh 2735 Aug 9, 2004, 2:19 AM