On 10/04/03 21:30 +0100, John Haxby wrote:Yes, but it's only a one-off job. Emacs is certainly up to the task, vi probably is as well using a regular expression to find the point on the Received: line where you want to make the split. awk and perl would both be up to the job. sed would work as well, but you'd have to fiddle with it for a while. You can also pick at the problem -- divide the whole file into chunks with alternate chunks being the ones with long lines in and then you've got a slightly easier problem to solve. This is Unix -- how many different tools do you want :-)
John P Verel wrote:Well, yes...except that we're talking about several hundred messages.
Anyone know how to fix the broken headers?Well, they're not broken as such, just reformatted. But you can just edit the file and put the line breaks back in -- just convert a space to newline-tab (or newline-any-number-of-spaces). Keep a copy of the mbox file just in case.
It really only makes sense with an automated tool.
jch
-- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list