Mbox bugs?

Kurt Hackenberg <[email protected]> Sun, 23 Jan 2022 21:02:36 -0500
Newsgroups gmane.comp.gnu.mailutils.bugs
Message-ID <[email protected]>
While testing the current mailutils, I tried a few things, and found 
what look like two bugs in the mbox read stuff.

Attached are two files, t1.mboxrd and t1_mu.dotmail. I created the first 
one outside mailutils, and used movemail to read it and write the 
second, converting mbox to dotmail.

I believe these days mailutils treats all mbox files as the Rahul Dhesi 
variant, and, on read, unescapes message lines that start with ">From ". 
In this case, it unescaped the first two such lines, but not the third.

And, in the output dotmail file, the message has a blank line added at 
the end, before the dot line that marks the end of the message. I guess 
the mbox read code treated the blank line after the message in the mbox 
file as part of the message, which it's not -- the blank line is part of 
mbox format.

The extra blank line doesn't show up when movemail converts other 
formats to dotmail, so it's probably not a bug in the dotmail code.
t1.mboxrd (text/plain, 309 B)
From [email protected] Thu Jan  1 00:00:00 1970
From: <[email protected]>
To: <[email protected]>
Date: Thu, 01 Jan 1970 00:00:00 +0000 (UTC)

>From the beginning of time, mbox has been lame.
>From the beginning of time, mbox has been lame.

>From the beginning of time, mbox has been lame.
moo
.moo
.
t1_mu.dotmail (text/plain, 258 B)
From: <[email protected]>
To: <[email protected]>
Date: Thu, 01 Jan 1970 00:00:00 +0000 (UTC)

From the beginning of time, mbox has been lame.
From the beginning of time, mbox has been lame.

>From the beginning of time, mbox has been lame.
moo
..moo
..

.