[Mailman-Users] "IOError reading list extension" Message
Barry Finkel
b19141 at anl.gov
Fri Apr 25 20:19:22 CEST 2008
Barry Finkel wrote:
>>Since these three files are not Mailman lists,
>>which Mailman process that was treating them as list names is
>>not important.
Mark Sapiro replied:
>It's important to me. I would like to understand why the name of a file
>in the lists/ directory is being returned (apparently by
>Utils.list_lists()) as a list name, because this isn't supposed to
>happen (and I can't make it happen in my test installation).
katydid# ls -al /var/lib/mailman/lists/ | grep -v ^d
total 992
katydid#
Once I removed those files, there are no other regular files in the
directory, only sub-directories. These messages are appearing each
hour at
hh:00:03
and also at
07:20:03
I have a Mailman cron that runs each morning at 07:20
/usr/local/cron-scripts/mailman_bounce_report.exec
to produce a summary of all subscriptions with a non-zero bounce score;
it essentially does
#!/bin/csh
foreach list (`ls /var/lib/mailman/lists`)
/usr/sbin/withlist -r get_bounce_info $list \
> mailman_bounce_report.tmpout
end
where
get_bounce_info
came from your repository
http://veenet.value.net/~msapiro/scripts/get_bounce_info.py
In that script I assume that everything in the lists subdirectory
is the name of a Mailman list; I do not check for a regular file,
and I am not sure if I really need to code such a check.
I have another cron that runs every hour, on the hour, that produces a
flat file containing records
listname e-mail address
so I have a list of all of the subscriptions. That script
/usr/local/cron-scripts/mailman_who.exec
essentially does:
#!/bin/csh
foreach list (`ls /var/lib/mailman/lists`)
/usr/lib/mailman/bin/list_members -o $destdir/$list $list
end
I also do not have a check in this script. I am using
foreach list (`ls /var/lib/mailman/lists`)
and not
Utils.list_lists())
to get a list of lists. I assume that the Utils.list_lists()) code
has the check that I do not have in "foreach list".
----------------------------------------------------------------------
Barry S. Finkel
Computing and Information Systems Division
Argonne National Laboratory Phone: +1 (630) 252-7277
9700 South Cass Avenue Facsimile:+1 (630) 252-4601
Building 222, Room D209 Internet: BSFinkel at anl.gov
Argonne, IL 60439-4828 IBMMAIL: I1004994
More information about the Mailman-Users
mailing list