>I'm using imail 6.x and I need to recover as many emails as possible from
>a corrupted file. IMail won't read the file and every time I try to make
>it it just locks the mailbox. So I have to write a program to parse the
>mbx files, extract any good emails and re-create the mbx file. The
>problem I'm running into is that there doesn't seem to be any seperator
>between emails. it just starts a new line with: From
><[EMAIL PROTECTED]>. does anyone know how imail detects new emails?
You found it.
IMail uses a variation of the standard Unix mailbox format. The identifier
for the start of a new E-mail is the presence of "From <" at the beginning
of a new line.
So, you program can do the following:
o Read a line from the .mbx file
o If it is "From <", start a new E-mail
o Otherwise, process it as a line of the current E-mail
o Repeat
-Scott
---
Declude: Anti-virus, Anti-spam and Anti-hijacking solutions for
IMail. http://www.declude.com
---
[This E-mail was scanned for viruses by Declude Virus (http://www.declude.com)]
Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.
An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Please visit the Knowledge Base for answers to frequently asked
questions: http://www.ipswitch.com/support/IMail/