summaryrefslogtreecommitdiffstats
path: root/Lib/mailbox.py
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2012-08-15 11:00:40 (GMT)
committerPetri Lehtinen <petri@digip.org>2012-08-15 11:26:27 (GMT)
commit3d12c4317c2970d65bf30e941070017a8d1be210 (patch)
tree418a655a5f37bc1559f0f101c88f88cadd7b9d9b /Lib/mailbox.py
parent2b209cd78d5a36d63b00d0a4350b78aec7bc820b (diff)
downloadcpython-3d12c4317c2970d65bf30e941070017a8d1be210.zip
cpython-3d12c4317c2970d65bf30e941070017a8d1be210.tar.gz
cpython-3d12c4317c2970d65bf30e941070017a8d1be210.tar.bz2
#11062: Fix adding a message from file to Babyl mailbox
Diffstat (limited to 'Lib/mailbox.py')
-rw-r--r--Lib/mailbox.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/mailbox.py b/Lib/mailbox.py
index 8b00460..73fe7d6 100644
--- a/Lib/mailbox.py
+++ b/Lib/mailbox.py
@@ -1443,9 +1443,9 @@ class Babyl(_singlefileMailbox):
line = line[:-1] + b'\n'
self._file.write(line.replace(b'\n', linesep))
if line == b'\n' or not line:
- self._file.write(b'*** EOOH ***' + linesep)
if first_pass:
first_pass = False
+ self._file.write(b'*** EOOH ***' + linesep)
message.seek(original_pos)
else:
break