lib: resurrect support for single-message mbox files
authorJani Nikula <jani@nikula.org>
Thu, 5 Jun 2014 06:34:09 +0000 (08:34 +0200)
committerDavid Bremner <david@tethera.net>
Sat, 14 Jun 2014 01:59:04 +0000 (22:59 -0300)
commit0cc0144875875fe974fe0851b5c2c21d63d9b06d
treeec8db15381d68bc24febdaa602053a34bd92110e
parent2d722bf032bbd4b08b415369e07a3c9e26f2472a
lib: resurrect support for single-message mbox files

This is effectively a revert of

commit 6812136bf576d894591606d9e10096719054d1f9
Author: Jani Nikula <jani@nikula.org>
Date:   Mon Mar 31 00:21:48 2014 +0300

    lib: drop support for single-message mbox files

The intention was to drop support for indexing new single-message mbox
files (and whether that was a good idea in the first place is
arguable). However this inadvertently broke support for reading
headers from previously indexed single-message mbox files, which is
far worse.

Distinguishing between the two cases would require more code than
simply bringing back support for single-message mbox files.
lib/message-file.c
test/T050-new.sh