rfc822.parseaddress() in Util.py Invalid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Mailman |
Invalid
|
Medium
|
Unassigned |
Bug Description
The reference to rfc822.
Util.py in Mailman 2.0.12 is invalid. As of at least
Python 2.1 and Python 2.2, the rfc822 module does not
contain this function. This makes it impossible to use
add_members from the command line, although web-based
subscription still seems to work.
The pertinent traceback:
Traceback (most recent call last):
File "/usr/sbin/
main()
File "/usr/sbin/
nres = ml.ApprovedAddM
send_welcome_msg)
File "/usr/lib/
1097, in
ApprovedAdd
Utils.
File "/usr/lib/
in ValidateEmail
realname,str = rfc822.
AttributeError: 'rfc822' module has no attribute
'parseaddress'
The fix is pretty simple. Simply replace
realname,str = rfc822.
on line 160 of Utils.py with
realname,str = rfc822.
[http://
Where did you get Mailman 2.0.12 from? There is no
parseaddress() call in Utils.py in the official Mailman
2.0.13 release, and there was no change to this since
MM2.0.12. Are you using some non-standard patch or local hack?