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 <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to