[Mailman-Developers] Re: Bogus directory

Jim Tittsler jwt@dskk.co.jp
Tue, 7 Mar 2000 18:23:54 +0900


--wRRV7LY7NUeQGEoC
Content-Type: text/plain; charset=us-ascii

On Fri, Mar 03, 2000 at 10:49:45AM -0300, Rodolfo Pilas wrote in
mailman-users:
[...]
> However I am in receipt of a message about bogus directory:
[...]
> List todos.tecnico has a bogus archive_directory:
> /var/spool/mailman/archives/private/todos.tecnico
> List todos.sistemas has a bogus archive_directory:
> /var/spool/mailman/archives/private/todos.sistemas

The "bogus archive directory" issue seems to come up fairly often.  Perhaps
it would be worthwhile to add a check to cron/nightly_gzip to find out if it
is simply a matter of there not yet being any articles to archive.  Mailman
could check post_id or last_post_time.  I've attached one possibility.

-- 
Jim Tittsler, Tokyo
Python Starship     http://starship.python.net/crew/jwt/


--wRRV7LY7NUeQGEoC
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="nightly_gzip.diff"

--- nightly_gzip.orig	Wed Sep  1 03:14:04 1999
+++ nightly_gzip	Tue Mar  7 18:17:16 2000
@@ -106,7 +106,8 @@
         try:
             allfiles = os.listdir(dir)
         except os.error:
-            print 'List', name, 'has a bogus archive_directory:', dir
+            if mlist.last_post_time:
+                print 'List', name, 'has a bogus archive_directory:', dir
             continue
         files = []
         for f in allfiles:

--wRRV7LY7NUeQGEoC--