Kaydet (Commit) bd3bc4dc authored tarafından Georg Brandl's avatar Georg Brandl

Bug #1430298: It is now possible to send a mail with an empty

return address using smtplib.
üst 0e1abe2a
...@@ -175,8 +175,11 @@ def quoteaddr(addr): ...@@ -175,8 +175,11 @@ def quoteaddr(addr):
except AttributeError: except AttributeError:
pass pass
if m == (None, None): # Indicates parse failure or AttributeError if m == (None, None): # Indicates parse failure or AttributeError
#something weird here.. punt -ddm # something weird here.. punt -ddm
return "<%s>" % addr return "<%s>" % addr
elif m is None:
# the sender wants an empty return address
return "<>"
else: else:
return "<%s>" % m return "<%s>" % m
......
...@@ -363,6 +363,9 @@ Extension Modules ...@@ -363,6 +363,9 @@ Extension Modules
Library 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 - Bug #1432260: The names of lambda functions are now properly displayed
in pydoc. in pydoc.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment