summaryrefslogtreecommitdiff
path: root/Mailman/pythonlib/smtplib.py
diff options
context:
space:
mode:
authorbwarsaw2000-09-11 21:20:28 +0000
committerbwarsaw2000-09-11 21:20:28 +0000
commitc82b4c37ac22b72e1fda6847cffca048160ca100 (patch)
tree56225c8bab15c780f25cb4cc8f6d0c4e107030ff /Mailman/pythonlib/smtplib.py
parent33cf6cac7695c5debdcb983255d3956b6ddc592a (diff)
downloadmailman-c82b4c37ac22b72e1fda6847cffca048160ca100.tar.gz
mailman-c82b4c37ac22b72e1fda6847cffca048160ca100.tar.zst
mailman-c82b4c37ac22b72e1fda6847cffca048160ca100.zip
Diffstat (limited to 'Mailman/pythonlib/smtplib.py')
-rwxr-xr-xMailman/pythonlib/smtplib.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Mailman/pythonlib/smtplib.py b/Mailman/pythonlib/smtplib.py
index f898a2fe1..4f6a00d3b 100755
--- a/Mailman/pythonlib/smtplib.py
+++ b/Mailman/pythonlib/smtplib.py
@@ -241,7 +241,9 @@ class SMTP:
if self.debuglevel > 0: print 'send:', `str`
if self.sock:
try:
- self.sock.send(str)
+ sendptr = 0
+ while sendptr < len(str):
+ sendptr = sendptr + self.sock.send(str[sendptr:])
except socket.error:
raise SMTPServerDisconnected('Server not connected')
else: