mirror of
https://github.com/python/cpython.git
synced 2025-12-05 09:03:50 +00:00
Bug #1430298: It is now possible to send a mail with an empty
return address using smtplib.
This commit is contained in:
parent
0e1abe2a07
commit
bd3bc4dc4c
2 changed files with 7 additions and 1 deletions
|
|
@ -177,6 +177,9 @@ def quoteaddr(addr):
|
||||||
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
|
||||||
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.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue