[Mailman-Users] Deleting old msgs?
Mark Sapiro
mark at msapiro.net
Fri Dec 9 01:52:06 CET 2011
Mark Sapiro wrote:
>On 12/8/2011 8:31 AM, Sebastian Hagedorn wrote:
>>
>>> You inspired me. I've created a script for pruning archives. See "NOTE
>>> ON PRUNING OLD MESSAGES:" in the FAQ at <http://wiki.list.org/x/2YA9>
>>> for links.
>>
>> this script is very welcome, but I'm having trouble getting it to work:
>>
>> /usr/lib/mailman/bin/prune_arch -v -l test -d 1700 -n
>> Traceback (most recent call last):
>> File "/usr/lib/mailman/bin/prune_arch", line 190, in ?
>> main()
>> File "/usr/lib/mailman/bin/prune_arch", line 142, in main
>> except (IOError, mailbox.NoSuchMailboxError), e:
>> AttributeError: 'module' object has no attribute 'NoSuchMailboxError'
>>
>> The list exists. We're running Red Hat Enterprise Linux, which comes
>> with Python 2.4 ... I've seen that newer versions have that attribute.
>> Mailman 2.1.14 officially supports Python 2.4, so perhaps the script
>> should reflect that?
I have revised the script and it should now work with all Python
versions that are acceptable for Mailman itself.
--
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Users
mailing list