[Mailman-Users] bin/arch : ctime

Rob Lingelbach rob at colorist.org
Fri Oct 9 01:18:03 CEST 2009


On Oct 8, 2009, at 8:11 PM, Mark Sapiro wrote:

> Mark Sapiro wrote:
>>
>> This script
>>
>> -----------------------------------------------------------------------
> [...]
>>           try:
>>               ptime = time.strptime(mo.group(1),
>>                                     '%a %b %d %H:%M:%S %Z %Y')
>>           except ValueError:
>>               next
> [...]
>
>
> Ooops. That should be
>
>            except ValueError:
>                continue

funny thing is, it worked, on a very minimal directory that I just ran  
a test on:

before running script:

roger at soho89-16-222-12 0:08 pts/1 /var/www/html/mailman/archives/ 
private/mfrs/2009-September# stat 000000.html
   File: `000000.html'
   Size: 3283      	Blocks: 16         IO Block: 4096   regular file
Device: fd03h/64771d	Inode: 26613721    Links: 1
Access: (0664/-rw-rw-r--)  Uid: (    0/    root)   Gid: (   41/ mailman)
Access: 2009-10-09 00:00:59.000000000 +0100
Modify: 2009-10-08 20:29:41.000000000 +0100
Change: 2009-10-08 20:29:41.000000000 +0100

and after running:

roger at soho89-16-222-12 0:10 pts/1 /var/www/html/mailman/archives/ 
private/mfrs/2009-September# stat 000000.html
   File: `000000.html'
   Size: 3283      	Blocks: 16         IO Block: 4096   regular file
Device: fd03h/64771d	Inode: 26613721    Links: 1
Access: (0664/-rw-rw-r--)  Uid: (    0/    root)   Gid: (   41/ mailman)
Access: 2009-09-02 00:47:38.000000000 +0100
Modify: 2009-09-02 00:47:38.000000000 +0100
Change: 2009-10-09 00:10:29.000000000 +0100

and the one invocation also took care of another message.html file.

But I'll make the change and test it again, and look at the more  
complete version as well, before I
start using it on the 60k message files I need it to work on.


--
Rob Lingelbach
rob at colorist.org













More information about the Mailman-Users mailing list