summaryrefslogtreecommitdiff
path: root/Lib/mailbox.py
diff options
context:
space:
mode:
authorJohannes Gijsbers <jlg@dds.nl>2004-08-21 12:30:26 +0000
committerJohannes Gijsbers <jlg@dds.nl>2004-08-21 12:30:26 +0000
commit9644b8b163a85452171e52f9336d7f1248c91e40 (patch)
tree46cb2d21bc331653365747fc1975d3eff77090b6 /Lib/mailbox.py
parent0e4340b17b973c0722abc8c0de557d431e43e98e (diff)
downloadcpython-9644b8b163a85452171e52f9336d7f1248c91e40.tar.gz
Patch #880621: the last message of a Babyl mailbox ends in '\037' instead of
'\037\014\n' (see http://quimby.gnus.org/notes/BABYL) so look for that as well, so that applications won't get '\037' as the last line of the last message.
Diffstat (limited to 'Lib/mailbox.py')
-rwxr-xr-xLib/mailbox.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/mailbox.py b/Lib/mailbox.py
index ab40df7e0d..c89c1a47b7 100755
--- a/Lib/mailbox.py
+++ b/Lib/mailbox.py
@@ -259,7 +259,7 @@ class BabylMailbox(_Mailbox):
line = self.fp.readline()
if not line:
return
- if line == '\037\014\n':
+ if line == '\037\014\n' or line == '\037':
self.fp.seek(pos)
return