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
Create a place to play and gather the files:
moseley@bumby:~$ mkdir craig
moseley@bumby:~$ cd !$
moseley(at)not-real.bumby:~/craig$ wget -q http://swish-e.org/archive/2005-08/9913.html
moseley@bumby:~/craig$ ln -s /usr/local/share/doc/swish-e/examples/prog-bin/index_hypermail.pl
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
moseley@bumby:~/craig$ perl index_hypermail.pl . | grep Last-Mtime
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 index_hypermail.pl . | 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.
moseley@bumby:~/craig$ cd ..
moseley@bumby:~$ rm -rf craig
Unsubscribe from or help with the swish-e list:
Help with Swish-e:
Received on Tue Aug 23 08:38:22 2005