Hi Mark,

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?

Update: I noticed that there are so many dependencies on new features of the mailbox module that it doesn't seem feasible to use Python 2.4. Do you know what the minimum required Python version would be? I suggest you add that info to the script.

Cheers, Sebastian
--
    .:.Sebastian Hagedorn - RZKR-R1 (Gebäude 52), Zimmer 18.:.
                .:.Regionales Rechenzentrum (RRZK).:.
.:.Universität zu Köln / Cologne University - ✆ +49-221-478-5587.:.
------------------------------------------------------
Mailman-Users mailing list [email protected]
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