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:
ro...@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:
ro...@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
r...@colorist.org
------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe:
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Security Policy: http://wiki.list.org/x/QIA9