[Mailman-Users] Getting python errors with bin/arch

Mark Sapiro mark at msapiro.net
Wed Feb 6 23:57:05 CET 2008

Rob Tanner wrote:
>I am trying to rebuild archives -- actually porting archives over from 
>another machine and then doing a rebuild, but the problem below shows up 
>inb all the archives.
>I run the command "bin/arch small_centers" and get the following error:
>#00000 <9c4d764c0802060656j1828bf41sbb8176d146fcbd9f at mail.gmail.com>
>figuring article archives
>Pickling archive state into 
>Traceback (most recent call last):
>  File "bin/arch", line 200, in <module>
>    main()
>  File "bin/arch", line 188, in main
>    archiver.processUnixMailbox(fp, start, end)
>  File "/usr/lib/mailman/Mailman/Archiver/pipermail.py", line 580, in 
>    self.add_article(a)
>  File "/usr/lib/mailman/Mailman/Archiver/pipermail.py", line 624, in 
>    author = fixAuthor(article.decoded['author'])
>  File "/usr/lib/mailman/Mailman/Archiver/pipermail.py", line 62, in 
>    while i>0 and (L[i-1][0] in lowercase or
>UnicodeDecodeError: 'ascii' codec can't decode byte 0xb5 in position 26: 
>ordinal not in range(128)
>This actually looks like a problem in a specific email message in the 
>archive.  How do I identify the mesand how do I fix it?

If you're doing a 'rebuild', you probably want the --wipe option with
bin/arch, but that isn't the problem.

The message has a hex b5 (Greek mu, micro sign), I think in the From:

You can try the attached patch to cleanarch which should enable
cleanarch to find the problems. It won't "fix" them, but it will tell
you where they are.

Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
Url: http://mail.python.org/pipermail/mailman-users/attachments/20080206/ce0da0f7/attachment.txt 

More information about the Mailman-Users mailing list