From 9644b8b163a85452171e52f9336d7f1248c91e40 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(-) (limited to 'Lib/mailbox.py') 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 -- cgit v1.2.1