From 6abc685a03763a44f4b7abb2a5d0f3c6b2853ac5 Mon Sep 17 00:00:00 2001 From: Johannes Gijsbers Date: Sat, 21 Aug 2004 12:30:26 +0000 Subject: 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. --- Lib/mailbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/mailbox.py b/Lib/mailbox.py index ab40df7..c89c1a4 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 -- cgit v0.12