I spent several hours over the weekend constructing a really big MBOX file
from an orphaned Messages file. To do this, you need a copy of BBEdit Lite
and you need to know how to use Grep. Don't forget to operate on a copy, and
do some cursory finds before Replace All.

First, look for patterns like:
[^\r]Received: from .*\r
[^\t].*\rReceived: from .*\r

And replace with:
>From ^^^@^^^\r

You'll need to account for messages that don't start with Received, so
repeat with "From:", "Return-Path:", ...

Also, you want to get rid of the garbage between messages, so search for:
\r\r\r\r\r
^\**\r
^[0-9][0-9][0-9][0-9][0-9]?

Now, skim the file looking for other garbage to clean up.

Then, save out and do a File:Import:text file:MBOX.

Now, set up a custom view and look for "Received: from" in the message body.
You probably missed some messages. Drag this view to the desktop to creat an
MBOX file, and clean it up. Then import it back in.

It's a long, tedious process, but it works.



From: "Remo Del Bello" <[EMAIL PROTECTED]>
Reply-To: "Entourage:mac Talk" <[EMAIL PROTECTED]>
Date: Mon, 23 Oct 2000 10:14:42 -0700
To: "Entourage:mac Talk" <[EMAIL PROTECTED]>
Subject: Recreate database from message file






I have a colleague her in my department that lost his "Database" file due to

drive corruption. His "Messages" file is still intact. Now when he starts up

Entourage his list of mail, calendar, contacts, etc. are all wiped clean, 
even though the file they are all stored in seems to be intact. Is there any

way to rebuild the Database from the Messages file? 

-- 
Remo Del Bello 


-- 
To unsubscribe:               <mailto:[EMAIL PROTECTED]> 
To search the archives: 
          <http://www.mail-archive.com/entourage-talk%40lists.boingo.com/> 






-- 
To unsubscribe:               <mailto:[EMAIL PROTECTED]>
To search the archives: 
          <http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>

Reply via email to