We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dc3df1 commit 4ce118eCopy full SHA for 4ce118e
1 file changed
Lib/smtplib.py
@@ -377,6 +377,7 @@ def getreply(self):
377
if self.debuglevel > 0:
378
print('reply:', repr(line), file=stderr)
379
if len(line) > _MAXLINE:
380
+ self.close()
381
raise SMTPResponseException(500, "Line too long.")
382
resp.append(line[4:].strip(b' \t\r\n'))
383
code = line[:3]
0 commit comments