Hello,
An associate of mine lost his inbox after his PC crashed. He uses
Netscape 7 on Windows XP. I found the inbox file which is 200MB, so I
assume it's all still there, but the emails don't show up in the
inbox.
I've copied both the inbox and inbox.msf files as a backup. I tried
deleting inbox.msf to rebuild it- didn't work. I've checked to see if
it's set on "view all messages"- it is. Please help!
Thanks,
Ed |
Request for Question Clarification by
mmastrac-ga
on
10 May 2004 20:04 PDT
If you open the inbox with notepad, do all of the messages appear?
|
Clarification of Question by
esarkissian-ga
on
11 May 2004 10:42 PDT
I can't really tell.... the inbox is over 200MB so notepad just hangs
when I try to open it. (need to implement archiving once this gets
fixed)
I tried creating a new Netscape profile and transferring the old inbox
over. When I opened the inbox it was busy for a while, with the
hard-drive light on, but eventually it brought up nothing- only the
one introductory email.
|
Request for Question Clarification by
mmastrac-ga
on
11 May 2004 11:41 PDT
One way to see the contents of the inbox is to use the command prompt,
"cd" to the appropriate directory and enter the command:
type inbox | more
You should see a number of raw messages there if the inbox has not
been corrupted beyond repair.
This will work no matter what the size of the INBOX is.
|
Clarification of Question by
esarkissian-ga
on
11 May 2004 12:19 PDT
Yep, I can see emails from February. Next step?
|
Request for Question Clarification by
mmastrac-ga
on
11 May 2004 12:53 PDT
Okay - time to recover your mbox. You've got the right technique -
create a new profile and copy your old INBOX over the new profile's
INBOX, but the file is likely corrupt.
To recover it, you'll need a command-line utility called "formail". Get this from:
http://gd.tuwien.ac.at/gnu/gnu-win32/release/procmail/procmail-3.22-8.tar.bz2
You'll need to decompress this file using the WinRAR demo version,
since WinZIP won't support a .tar.bz2 file (once you're done with the
process, you can always uninstall the WinRAR demo). You can get the
demo of WinRAR from:
http://www.rarlab.com/rar/wrar330.exe
Now, use WinRAR to open the .tar.bz2 file by double-clicking the
.tar.bz2 file. It should now show a single ".tar" file. Open the
.tar file and navigate through to the usr/bin directory. In this
directory with be a file called "formail.exe". Decompress this file
to your C:\temp directory.
Copy your corrupted inbox file to the temp directory. Run the
following from the command prompt:
C:\temp>formail -ds < inbox > inbox2
"inbox2" should now contain a fixed mbox-style mailbox. Copy it to a
new Netscape7 profile's Mail directory as inbox2 and it should appear
as a new folder when you fire up the mail client and contain all the
recoverable messages.
You should compare the filesize of inbox and inbox2 to see if there
was a significant amount of corruption. With any luck, it should be
roughly the same size.
Please let me know if you need clarification of any step within this
process, or if something does not work as I have described.
|
Request for Question Clarification by
mmastrac-ga
on
11 May 2004 13:00 PDT
Sorry esarkissian-ga, one correction. Use the following command line
to recover the mbox file:
C:\Temp>formail -dbs < inbox > inbox2
|
Clarification of Question by
esarkissian-ga
on
12 May 2004 13:37 PDT
mmastrac-ga,
When I do the command line portion I get an error for formail.exe. It
says it failed to start because it's missing cygwin1.dll and
reinstalling may fix it. I reinstalled, even re-downloaded and it
didn't fix it. Another suggestion/download location?
Thanks.
Ed
|
Request for Question Clarification by
mmastrac-ga
on
12 May 2004 14:48 PDT
Sorry! I didn't realize that the executable required external DLLs
(which were already present on my machine).
To obtain cygwin1.dll, download the following .zip file. Place the
.DLL in the same directory as "formail.exe":
http://www2.mikro.biologie.tu-muenchen.de/rs/soft/download/CygWinDll.zip
|
Clarification of Question by
esarkissian-ga
on
12 May 2004 16:15 PDT
Ok, now I get another error:
formail.exe Entry Point Not Found
The procedure entry point __getreent could not be located in the
dynamic link library cygwin1.dll.
|
Request for Question Clarification by
mmastrac-ga
on
12 May 2004 17:35 PDT
Hrm... I will need to locate the correct version of the DLL for you.
The documentation for this tool is very poor. Sorry for the
inconvenience!
|
Request for Question Clarification by
mmastrac-ga
on
12 May 2004 18:01 PDT
I've managed to isolate the DLL you need from the computer I have
formail.exe running on and archived it for you. You can grab it at:
http://www.grack.com/downloads/misc/cygwin/cygwin1.zip
Please replace the cygwin1.dll you downloaded earlier with this one.
|
Clarification of Question by
esarkissian-ga
on
13 May 2004 16:04 PDT
mmastrac-ga, it worked! Inbox2 is roughly the same size so doesn't
look like too much was lost. A lot of straaange emails though, so I'm
wondering if a virus had anything to do with it. But nonetheless, it
worked. Post and you shall receive!
Ed
|