Re: Bug#43957: hypermail: hypermail has problems parsing date

From: Martin Schulze <joey_at_finlandia.Infodrom.North.DE_at_hypermail-project.org>
Date: Thu, 28 Oct 1999 22:53:25 +0200
Message-ID: <19991028225324.V23156_at_finlandia.infodrom.north.de>


Please find another bug report where sorting is done wrong. I've sent the URL to proper mbox files a couple of seconds before.

Regards,

        Joey

Brian May wrote:
> On Tue, Oct 26, 1999 at 08:58:24PM +0200, Martin Schulze wrote:
> > > Two examples:
> > >
> > > Example 1: Archive with messages in 1998 contains one message in 1997:
> > > Date: Sat, 08 Nov 1997 13:26:53 +1100
> > >
> > > This gets sorted under in 1998. Maybe it is looking at the resent-date field:
> > > ReSent-Date: Thu, 19 Mar 1998 17:58:20 +1100 (EST)
> >
> > What leads you into the impression that hypermail will store mails
> > in directories according to any header field? I always got the
> > impression that "-d /foo/bar/%y" will replace %y by `date +%Y`
> > and not parse any header.
>
> NO! NO! NO!
>
> (but thats for telling me about that feature which I must have missed).
>
> I mean the sort order in the index is wrong. For instance,
>
> Message Date
> 1 Fri, 13 Feb 1998 12:13:40 +1100
> 2 Wednesday, February 18, 1998 11:20 AM
> 3 Fri, 20 Feb 1998 10:14:43 +1100 (EST)
> 4 20 Feb 1998 05:45:35 -0000
> 5 Fri, 20 Feb 1998 16:53:58 +1100
> 6 Mon, 02 Mar 98 16:51:25 +1000
> 7 4 Mar 1998 08:31:10 -0000
> 8 Sat, 08 Nov 1997 13:26:53 +1100
> 9 Fri, 8 May 1998 12:52:35 +1000
>
> Notice message 7 has the wrong year. It should appear at the top.
>
> If I look at the message involved, it has the following headers:
>
> >From bam_at_snoopy.apana.org.au Thu Mar 19 17:58:22 1998
> Return-Path: <bam_at_snoopy.apana.org.au>
> Received: (qmail 32138 invoked by uid 1000); 19 Mar 1998 06:58:22 -0000
> Delivered-To: elmo_at_snoopy.apana.org.au
> X-Received: (qmail 28085 invoked by uid 503); 8 Nov 1997 02:26:55 -0000
> Message-ID: <19971108022654.28083.qmail_at_snoopy.apana.org.au>
> To: elmo_at_snoopy.apana.org.au
> Subject: FW: Microsoft Addresses Justice Department Accusations
> Reply-to: Brian May <bam_at_snoopy.apana.org.au>
> MIME-Version: 1.0
> Content-Type: text/plain; charset="us-ascii"
> Content-ID: <28082.878956013.1_at_snoopy.apana.org.au>
> Date: Sat, 08 Nov 1997 13:26:53 +1100
> From: Brian May <bam_at_snoopy.apana.org.au>
> ReSent-Date: Thu, 19 Mar 1998 17:58:20 +1100 (EST)
> ReSent-From: Rose May <elmo_at_snoopy.apana.org.au>
> ReSent-To: Rose May <elmo_at_snoopy.apana.org.au>
> ReSent-Message-ID: <Pine.LNX.3.96.980319175820.32083H_at_snoopy.apana.org.au>
> Status: RO
> Content-Length: 4547
> Lines: 93
>
> If however, I look at the top of the index file, it has:
>
> Starting: Fri 13 Feb 1998 - 13:24:05 EST
> Ending: Tue 08 Jun 1999 - 17:54:03 EST
> Messages: 161
>
> So it is obvious it used one date for sorting, but another date here.
>
> > > I think that either:
> > > 1) The ReSent-Date should be displayed in the resultant HTML version of
> > > message instead of the Date field. OR
> >
> > This has to be turned on by using
> >
> > set hm_show_headers = Resent-Date
> >
> > in the config file.
>
> Ok.
>
> > > 2) The Date field should be used instead, for sorting.
> >
> > which will be as confusing since the mail was (re)sent and received
> > later.
>
> I disagree. (1) it should be consistant with the method used for "start
> date" and "stop date", and (2) when a message is resent, (most if not
> all) mailers do not allow making alterations, (3) I only ever use the
> resend function to resend it to me, otherwise I would use the forward
> function
>
> > Thus: I don't see where the current mistake is nor how to make it
> > better. Resent-Date could be turned on by default, though.
> >
> > What arguments did you use? Can you provide me with a sample mailbox?
>
> Yes. I have mail on one machine that is a year old. I want to forward
> it to my mailing list, but I want it to use the original date, since I
> haven't made any changes to it. So I resend (aka bounce) the message to
> my home E-Mail address where I manually add the message to the archive.
>
> > > ------------------------------------------------------------
> > > Example 2:
> > >
> > > Using mutt, Archive contains messages in 1999, from:
> > > Date: Sun, 3 Jan 1999 12:31:42 +0000
> > >
> > > TO:
> > > Date: Wed, 1 Sep 1999 10:08:08 +0200
> > >
> > > but the HTML index, from hypermail, says:
> > > Starting: Sat 06 May 1972 - 23:07:07 EST
> > > Ending: Wed 01 Sep 1999 - 18:18:17 EST
> > >
> > > The first message, date sorted, HTML output has the date:
> > > Sun, 18 Jul 1999 10:14:18 GMT
> > > I can't see any reference to 1972 in this message.
> > >
> > > The last message, date sorted, HTML output has the date:
> > > Wed, 1 Sep 1999 10:08:08 +0200
> > >
> > > I really have no idea whats happening here, but would be happy
> > > to provide you with extra details.
> >
> > I need proper mbox files to check this.
> >
> > However, apparently something's not working properly anyway.
>
> Will send you both mbox files I have for 1998 (demonstrates
> resend-date problem) and 1999.
> --
> Brian May <bam_at_snoopy.apana.org.au>

-- 
No question is too silly to ask, but, of course, some are too silly
to answer.   -- Perl book

Please always Cc to me when replying to me on the lists.
Received on Thu 28 Oct 1999 11:04:59 PM GMT

This archive was generated by hypermail 2.2.0 : Thu 22 Feb 2007 07:33:51 PM GMT GMT