subscriber with colon in address can't be removed

Bug #266219 reported by Kiwimonster
2
Affects Status Importance Assigned to Milestone
GNU Mailman
New
Medium
Unassigned

Bug Description

We are running Mailman 2.1.4 on debian.

Somehow, one of our lists wound up with an improperly
formatted address like this:

   mailto:<email address hidden>

The list administrator is not able to remove this
member from the web interface. When I attempt to
remove them with remove_members, I get this traceback:

Traceback (most recent call last):
  File "./remove_members", line 186, in ?
    main()
  File "./remove_members", line 176, in main
    admin_notif, userack)
  File "/var/lib/mailman/Mailman/MailList.py", line
954, in ApprovedDeleteMember
    self.removeMember(emailaddr)
  File
"/var/lib/mailman/Mailman/OldStyleMemberships.py", line
220, in removeMember
    self.__assertIsMember(member)
  File
"/var/lib/mailman/Mailman/OldStyleMemberships.py", line
113, in __assertIsMember
    raise Errors.NotAMemberError, member

From reading rfc822, it looks like colon is not an
allowed character in an email address.

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

Revision history for this message
Kiwimonster (kiwimonster) wrote :

Incidentally, an easy way to fix this problem is to dump the
membership to a file with list_members, modify the file to
remove the improperly formatted address, and then use the
file with sync_members. I usually do sync_members -n to see
what changes it's going to make first.

Of course, it would be ideal for Mailman to not allow bad
characters in the email address in the first place.

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.