Re: mbox mail file format
- From: "Adem" <adem.meda@xxxxxxxxx>
- Date: 13 Apr 2008 09:47:34 -0700
Henrick Hellström wrote:
Most mail clients, including Thunderbird, store email sequentially in
a giant text file,
This is 'mbox format'. I believe the other is called the 'maildir
format' where each mail item is stored as individual files. Outlook
Express uses the latter.
There used to be a very heated discussion about which format was better
suited for real life apps --servers, at the time-- and despite the
speed drawbacks maildir won on the grounds that it was safer. A
corrupted file would not bring the whole thing down; plus, flise size
issues.
Thunderbird (and, possibly some others) still use mbox format which can
happen to get corrupted somehow, leaving the users (me, in this case)
high and dry.
where each email appear in a format you can parse with practicallyany
MIME parser available.
This is true, of course. But the devil is in the details. I have no
idea how close Thunderbird follows the relevant RFC (for mbox format),
plus it would be much easier if someone else had done the leg work of
taking care of handling attachments, multi-part stuff; and character
codepage issues which can be quite a bit of a head ache.
{I have done some work on this about 9 years ago. Trouble is my code is
buried somewhere in some app.}
The hard part is probably to figure out where each email ends and
the next begins, but it is probably not that hard.
This is the easier part.
In addition, TB 2.0 has a .msf file that appears to be some sort of
index over which email are unread or flagged some other way.
MSF (Mail Summary File) is a Thunderbird-peculiar file. It's there to
speed up some operations (mainly, loading Thunderbird).
These MSF files can be deleted (Thunderbird not running) without a
thought.
Indeed, Thunderbird people suggest we do just that as the first thing
to do in the cases where Thunderbird acts weird.
Now.. Having said all that, I do still hope someone else has code to
share that handles mbox format to save me going years back and
researching RFCs and covering deviations from them :)
.
- Follow-Ups:
- Re: mbox mail file format
- From: Henrick Hellström
- Re: mbox mail file format
- References:
- mbox mail file format
- From: Adem
- Re: mbox mail file format
- From: Henrick Hellström
- mbox mail file format
- Prev by Date: Re: Best DBGrid for Delphi..
- Next by Date: Re: Best DBGrid for Delphi..
- Previous by thread: Re: mbox mail file format
- Next by thread: Re: mbox mail file format
- Index(es):
Relevant Pages
|
|