wrong error msg in create.py
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Mailman |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When I create a list using create.py (http://
"Bad owner email address: ...@lists...."
altough the error message should be
"Illegal list name: ...".
This can be fixed in MailList.py
def Create(...
in MM 2.1.10 line 490 by replacing
try:
except Errors.
by
try:
except (Errors.
I haven't really looked into Errors.py/Utils.py and why the error thrown by ValidateEmail is "EmailAddressError" and not "MMBadEmailError". But the above change fixed the problem for me. :)
cheers,
Gero
(<email address hidden>)
1) It is only by accident I saw this report. All Mailman bugs, even for 2.1 /bugs.launchpad .net/mailman>. The sourceforge
should be reported at <https:/
tracker is only available so old URLs to bug reports still work.
2) You are correct about the bug, but the fix
except (Errors. MMBadEmailError , Errors. EmailAddressErr or):
is redundant as Errors. MMBadEmailError is a sub class of Errors. EmailAddressErr or so just changing it to
except Errors. EmailAddressErr or:
is just as good. The real problem is Utils.ValidateE mail() considers any address which has non-ascii characters to be 'hostile' and raises Errors. MMHostileAddres s which is another sub-class of Errors. EmailAddressErr or.
The fix will be in the next release.