From: Georg Brandl Date: Fri, 17 Feb 2006 09:53:00 +0000 (+0000) Subject: Bug #1430298: It is now possible to send a mail with an empty X-Git-Tag: v2.4.3c1~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a957e8fbf5d4b953a4c031e033e7be0a4f65c830;p=thirdparty%2FPython%2Fcpython.git Bug #1430298: It is now possible to send a mail with an empty return address using smtplib. --- diff --git a/Lib/smtplib.py b/Lib/smtplib.py index 2e124838850f..01ef53f0007b 100755 --- a/Lib/smtplib.py +++ b/Lib/smtplib.py @@ -175,8 +175,11 @@ def quoteaddr(addr): 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 diff --git a/Misc/NEWS b/Misc/NEWS index af3c3ad0e08b..4d14c9a5ac7c 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -74,6 +74,9 @@ Extension Modules 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.