[Patches] Unix Mailboxes don't work quite right.
John Viega
john@list.org
Sat, 17 Jun 2000 20:32:04 -0400
The method "_isrealfromline" in mailbox.UnixMailbox doesn't handle some
real email messages. I've noticed this by comparing Python's notion of
a Mailbox with that of real mailers. In this particular case, one of my
real mailboxes has several messages without a time zone offset included,
and Python doesn't treat those from lines as the start of a message.
I've looked around, and it seems that real mailers seem to treat any
sequence of "\nFrom " as a from line.
With that in mind, I'd suggest the following changes:
Delete lines 104-113.
Change "_isrealfromline" to:
def _isrealfromline(self, line): return 1
If people want the original behavior for whatever reason, they can
override it, but this change would make Python much more compatible with
mailers, etc.
John