[Mailman-Users] more prune_arch errors

Con Wieland cwieland at uci.edu
Tue Oct 2 20:18:44 CEST 2012

back at trying this. I now get:

./prune_arch -l mgsa-l -d 1095 -bpnv
Processing mgsa-l mailbox
Traceback (most recent call last):
  File "./prune_arch", line 191, in ?
  File "./prune_arch", line 156, in main
    mdate = mktime_tz(parsedate_tz(msg['date']))
  File "/usr/local/mailman/pythonlib/email/_parseaddr.py", line 140, in mktime_tz
    if data[9] is None:
TypeError: unsubscriptable object

thanks for the help


On Sep 27, 2012, at 7:27 AM, Mark Sapiro wrote:

> I have updated the scripts at
> <http://www.msapiro.net/scripts/prune_arch> and
> <http://fog.ccsf.cc.ca.us/~msapiro/scripts/prune_arch> again. The script
> will now skip unparseable messages and messages with missing or
> unparseable Date: headers and report the same.
> It only reports the sequence number of the message in the mbox, but if
> you run the script with the -b or --backup option, you can find the
> skipped message(s) in the listname.mbox.bak file with something like
> grep "^From " listname.mbox.bak | grep -n . | grep ^xxx:
> where xxx is the sequence number of a skipped message.
> -- 
> Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
> San Francisco Bay Area, California    better use your sense - B. Dylan
> ------------------------------------------------------
> Mailman-Users mailing list Mailman-Users at 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/cwieland%40uci.edu

More information about the Mailman-Users mailing list