lib: Reject multi-message mboxes and deprecate single-message mbox
authorAustin Clements <amdragon@MIT.EDU>
Sun, 25 Nov 2012 06:16:01 +0000 (01:16 -0500)
committerDavid Bremner <bremner@debian.org>
Tue, 27 Nov 2012 01:12:10 +0000 (21:12 -0400)
commit610f0e09929a5f351f7c1c3850ac7e0d83ffe388
tree18dfd7072c95710d5f644808f06c486f71bc360e
parent079f5a138b685bb33bee86c0ed5b8d17f58b09af
lib: Reject multi-message mboxes and deprecate single-message mbox

Previously, we would treat multi-message mboxes as one giant email,
which, besides the obvious incorrect indexing, often led to
out-of-memory errors for archival mboxes.  Now we explicitly reject
multi-message mboxes.  For historical reasons, we retain support for
single-message mboxes, but official deprecate this behavior.
lib/database.cc
lib/index.cc
test/new