list_members fails on addresses with high-bit (?) characters

Bug #265890 reported by Cabelsa
2
Affects Status Importance Assigned to Milestone
GNU Mailman
Fix Released
Medium
Unassigned

Bug Description

Version: Mailman 2.1.1

Dear Brilliant Mailman People,

I'm somewhat urgently trying to export lists from our old machine
(which shuts down at the end of the week) to a brand new server.

I've created the lists on the new machine, and am trying to use
list_members to export the people, so I can re-import them on
the new box.

However, list_members is apparently failing on any address with
high-bit ("funky") characters, and it appears we have quite a few

out of our 100,000+ addresses.

Here's the error:

Traceback (most recent call last):
  File "./list_members", line 232, in ?
    main()
  File "./list_members", line 207, in main
    s = formataddr((name, addr)).encode(enc, 'replace')
UnicodeError: ASCII decoding error: ordinal not in range(128)

Knowing absolutely nothing about Python, I put an extra "print"
in
that function to see what address it was dying on. Here it is:

[root@posh bin]# ./list_members transmit-e
<email address hidden>
<email address hidden>
<email address hidden>
<email address hidden>
[...]
<email address hidden>
<email address hidden>
1@1.com
1@1.com
1@1.ä??
Traceback (most recent call last):
  File "./list_members", line 234, in ?
    main()
  File "./list_members", line 209, in main
    s = formataddr((name, addr)).encode(enc, 'replace')
UnicodeError: ASCII decoding error: ordinal not in range(128)

So it looks like 1@1.ä[something] at least one problem address.

Is there any way I can work around this bug until an official
update?

Just deleting the problem members isn't as easy as it seems (the
list is hardcoded to 'www.panic.com', and all the admin forms are
pointing to that, but www.panic.com is now the new machine...)

Thanks for looking at this!

[http://sourceforge.net/tracker/index.php?func=detail&aid=714156&group_id=103&atid=100103]

Revision history for this message
Cabelsa (cabelsa) wrote :

I apologize. This is a duplicate of bug #660675.

Search before you post a bug, Cabel. Jeez.

Revision history for this message
Barry Warsaw (barry) wrote :

Actually, I don't think this one's a duplicate. 660675
talks about "funny" characters in realnames, which should be
perfectly legal and Mailman should not choke on. But your
message is about funny characters in email addresses, which
is not legal.

I don't know how, but it appears as though Mailman allowed
such bogus addresses into its member database. This will
cause you pain, and such addresses should not be allowed.
MM2.1.2 will disallow such addresses, but won't clean up
your existing member database. Here's an article that might
help you with that:

http://article.gmane.org/gmane.mail.mailman.user/8487/match=find+members

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.