Re: Evolution Mangles mbox Headers: How to fix?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



John P Verel wrote:

On 10/04/03 21:30 +0100, John Haxby wrote:


John P Verel wrote:



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.


Well, yes...except that we're talking about several hundred messages.
It really only makes sense with an automated tool.


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 :-)

jch


-- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux