I've already done this for several of them. The trouble is there's not a consistent set of bad characters in the corrupted header. A fair number came back with
grep '/.X-Message-Status: n$' But that's not all of them. A few more came back with: grep -P '/\x13\x42/' Good tip on using sed to edit them in place. I'd used grep with redirection. That takes the additional step of moving them around one it's complete but it saves me from having to reload it all should something have gone horribly wrong. Six of one, half dozen of the other I suppose. -Bill Kearney ----- Original Message ----- > If you've identified the offending header, you could delete it with: > $ sed -i.bak -e '/^X-Message-Status/d' mailbox ---- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html