Saner parsing of mbox format

Also: Correctly handle mutt-flags