[linux-elitists] fixing a corrupted mbox

Marc MERLIN marc at merlins.org
Mon Oct 26 10:03:16 PDT 2009

On Mon, Oct 26, 2009 at 05:59:08PM +0100, Eugen Leitl wrote:
> > Restore from backup.  I suppose you could also find the corrupted area
> > and just delete it, assuming it is small.
> It is somewhere during the last 3 days. Will be difficult to hunt
> down manually, given that there are hundreds of emails in there.

It's not so hard, open the file under strace, note the last strings that are
read before you get the corruption error, open the mbox with vim and look
for the string.
Hand fix from there.

"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/  

More information about the linux-elitists mailing list