[Patches] Unix Mailboxes don't work quite right.

Fredrik Lundh Fredrik Lundh" <effbot@telia.com
Sun, 18 Jun 2000 12:56:12 +0200


MAL wrote:
> > 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.
>=20
> Why not fix the RE to also match the messages you are seeing=20
> your mail box file instead of removing the check completely ?

maybe because it doesn't really make much sense to look for either
"From ", or "From " followed by something else?

also see:

http://home.netscape.com/eng/mozilla/2.0/relnotes/demo/content-length.htm=
l

    Essentially the only safe way to parse that file format is to =
consider
    all lines which begin with the characters "From '' (From-space), =
which
    are preceded by a blank line or beginning-of-file, to be the =
division
    between messages. /.../

    Some people will tell you that you should do stricter parsing on =
those
    lines: check for user names and dates and so on. They are wrong.

</F>