[Mailman-Developers] nightly_gzip - more than a little broken...
Nigel Metheringham
Nigel.Metheringham@vdata.co.uk
Wed, 09 Feb 2000 16:51:19 +0000
I wondered why the nightly_gzip program was not working correctly on
some of my lists - one (a high traffic list) has weekly based
archiving, the other (an announce list) has quarterly based archiving.
A very quick look at the code shows:-
for f in allfiles:
try:
time.strptime(f, '%Y-%B.txt')
except ValueError:
continue
that strptime seems to be ensuring that the archive mbox files have a
year and month in their names before a .txt - and this only applies to
monthly archives in practice.
Would there be any problems with just changing this to be a regexp
match for '\.txt$' instead? If you really want to check its an archive
then look for a directory x with a file x.txt .
Nigel.
--
[ - Opinions expressed are personal and may not be shared by VData - ]
[ Nigel Metheringham Nigel.Metheringham@VData.co.uk ]
[ Phone: +44 1423 850000 Fax +44 1423 858866 ]