Skip to main content.
home | support | download

Back to List Archive

Re: swish-e hypermail and date_ranges

From: Bill Moseley <moseley(at)not-real.hank.org>
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 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
lastmodified date:

    moseley@bumby:~/craig$ perl index_hypermail.pl . | 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 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.

Clean up:


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

Send mail:

    <ESC>:wqy


-- 
Bill Moseley
moseley@hank.org

Unsubscribe from or help with the swish-e list: 
   http://swish-e.org/Discussion/

Help with Swish-e:
   http://swish-e.org/current/docs
   swish-e@sunsite.berkeley.edu
Received on Tue Aug 23 08:38:22 2005