summaryrefslogtreecommitdiff
path: root/Lib/mailbox.py
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2012-08-15 14:36:14 +0300
committerPetri Lehtinen <petri@digip.org>2012-08-15 14:36:14 +0300
commitaae61b8cd02479180d326889c717daa413029b4d (patch)
treed18aa2fc04b4cf30134c0d2a733d47cfd8e3c05e /Lib/mailbox.py
parent3115f0d14b5a8b65be57f21c0866586bd4e06fa2 (diff)
parent3d12c4317c2970d65bf30e941070017a8d1be210 (diff)
downloadcpython-git-aae61b8cd02479180d326889c717daa413029b4d.tar.gz
#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 3ab3396879..30877f1a6a 100644
--- a/Lib/mailbox.py
+++ b/Lib/mailbox.py
@@ -1440,9 +1440,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