Bugs item #1030228, was opened at 2004-09-17 22:28 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1030228...
Category: (un)subscribing Group: 2.1 (stable) Status: Open Resolution: None Priority: 5 Submitted By: Mark Sapiro (msapiro) Assigned to: Nobody/Anonymous (nobody) Summary: Mass Subscribe address with control character - can't delete
Initial Comment: Mailman 2.1.4
We mass subscribed an automatically generated list of addresses. One of these contained an ascii Vertical-Tab character. The (somewhat munged for privacy) address in the mass subscribe list was firstname.lastname@example.org<VT>rixxxxxher where <VT> represents ascii Vertical Tab (hex 0B).
The address was subscribed OK and then noticed to be bad. We followed the link from the member list to that member's option page an attempted to unsubscribe it and "encountered a bug". This happened twice in succession and then a third time about an hour later. The error log entry from the first try is attached (with the same address munging). Another list administrator tried the same thing the next morning and that time it worked. We don't know why what we think was the same unsubscribe procedure didn't work 3 times and then worked the next day.
the following is in Utils.py
# TBD: what other characters should be disallowed? _badchars = re.compile(r'[()<>|;^,/\200-\377]')
A fix might be to add the range \000-\037 to the _badchars re, but this may not be correct. It is not clear whether they should be allowed.
RFC 2822 allows "non white space" control characters in domain-literals, but not in local-parts of addresses. However, RFC 2821 (SMTP) says: A domain (or domain name) consists of one or more dot-separated components. These components ("labels" in DNS terminology) are restricted for SMTP purposes to consist of a sequence of letters, digits, and hyphens drawn from the ASCII character set.
Thus, it seems that for Mailman purposes it would be safe to not allow any of \000-\037 in addresses.
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1030228...