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.
From nobody@nowhere.invalid Thu Jan  1 00:00:00 1970
From: <j...@blow.nope>
To: <al...@flyingcloud.ship>
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
.

From: <j...@blow.nope>
To: <al...@flyingcloud.ship>
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
..

.

Reply via email to