Just had an issue with a mailbox on a server, and it seemed pretty OK
checking it with vim. I tried to remove the newest 1-2 messages, but
that didn't help either.
As there were quite a few messages in it, i wanted to isolate the
culprit; split the mailbox into single mails, try to open them with a
mailclient and then put all the other (working) messages back together.
A quick search pointed me to the
'csplit'.
You can use it as follows:
{.lang:sh .decode:true}
csplit -n 2 -k mbox-file '/^From /' '{*}'
Credits to the guys over here:
Cheers,
Raphi