#3759: Illegal mbox file created from md message missing EOL at end
------------------------+----------------------
Reporter: muttbug111 | Owner: mutt-dev
Type: defect | Status: new
Priority: major | Milestone:
Component: mutt | Version:
Keywords: |
------------------------+----------------------
Given a maildir directory structure containing a mail file of the
following format (thunderbird does that):
<header lines>
<empty line>
<space, but no EOL following>
mutt creates an illegal mbox file that is missing proper "From " line
separation. If the above mail is copied to an mbox file together with
another mail following, the resulting mbox file has the format:
From ... (mail 1)
<header lines>
Content-Length: 1
<empty line>
<space, but no EOL following>
From ... (mail 2)
<header lines>
Content-Length: ...
<empty line>
<body lines>
That is, no empty line precedes the second "From ". Whitespace doesn't
count as empty.
It looks like mutt simply inserts an empty line between the content of the
two mail files, without checking if a maildir mail file finishes with end-
of-line. If it doesn't, mutt needs to insert TWO empty lines (and possibly
adjust any content-length: header).
mutt 1.5.21, openSUSE 13.2
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3759>
Mutt <http://www.mutt.org/>
The Mutt mail user agent