return address using smtplib.
except AttributeError:
pass
if m == (None, None): # Indicates parse failure or AttributeError
- #something weird here.. punt -ddm
+ # something weird here.. punt -ddm
return "<%s>" % addr
+ elif m is None:
+ # the sender wants an empty return address
+ return "<>"
else:
return "<%s>" % m
Library
-------
+- Bug #1430298: It is now possible to send a mail with an empty
+ return address using smtplib.
+
- Bug #1432260: The names of lambda functions are now properly displayed
in pydoc.