Skip to main content.
home | support | download

Back to List Archive

Re: swish-e hypermail and date_ranges

From: Bill Moseley <moseley(at)>
Date: Tue Aug 23 2005 - 15:38:19 GMT
On Tue, Aug 23, 2005 at 02:04:15AM -0700, Jackson Craig wrote:
> Thanks alot for your reply. Sadly, I do not know how to get the script to do
> this conversion. If you were feeling generous, maybe you could help me with
> that .....  ;-)

Let's look at a message form the swish archive - the one I'm currently
responding to:

Create a place to play and gather the files:

    moseley@bumby:~$ mkdir craig
    moseley@bumby:~$ cd !$
    cd craig
    moseley(at)not-real.bumby:~/craig$ wget -q
    moseley@bumby:~/craig$ ln -s /usr/local/share/doc/swish-e/examples/prog-bin/

Ok, what date is stored in the hypermail message:

    moseley@bumby:~/craig$ fgrep received= 9913.html
    <!-- received="Tue Aug 23 02:06:22 2005" -->
    <!-- isoreceived="20050823090622" -->

Ok, now process it with the index_hypermail script to see what date
it's setting for the Last-Mtime: header which ends up as the swish
lastmodified date:

    moseley@bumby:~/craig$ perl . | grep Last-Mtime
    Last-Mtime: 1124787982

And what date is that?

    moseley@bumby:~/craig$ perl -le 'print scalar localtime 1124787982'
    Tue Aug 23 02:06:22 2005

So it's taking the correct date.

Now index and show the results:

    moseley@bumby:~/craig$ perl . | swish-e -S prog -i stdin -v0

    moseley@bumby:~/craig$ swish-e -w not dkdkdk -p swishlastmodified -H0
    1000 ./9913.html "Re: swish-e hypermail and date_ranges" 2026 "2005-08-23 02:06:22 PDT"

Looks like it works as expected.

Clean up:

    moseley@bumby:~/craig$ cd ..
    moseley@bumby:~$ rm -rf craig

Send mail:


Bill Moseley

Unsubscribe from or help with the swish-e list:

Help with Swish-e:
Received on Tue Aug 23 08:38:22 2005