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

Re: kmail corrupts emails [solved]



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Montag, 26. September 2005 23:03 schrieb Reinhold Kainhofer:
> Am Montag, 26. September 2005 21:23 schrieb Randy Kramer:
> > I suppose maildir will be OK (and maybe even better) for my inbox, which
> > I generally keep "trimmed" (not too many emails).
>
> Maildir is the recommended format. It's even the default for a new kmail
> installation.
>
> > I don't think I want to do that for my mail folders which often have a
> > lot (thousands) of archived emails (usually short).
>
> So what? Our department's mail server uses maildir, and there are far more
> than only thousands of messages.
>
> On the other hand, for lots of messages, the mbox file needs to be searched
> / loaded in whole, while in maildir only one file needs to be loaded.

Oh I forgot: You said that you accessed the same mbox file from two different 
machines. mbox format is known to cause massive mbox file corruption in this 
case, since if one app adds/changes a message, the mbox file needs to be 
changed (rewritten). If the second app changes the folder at the same time, 
it looses either that message, or has wrong offsets in the mbox file. The 
latter is really critical, since many mail applications don't rewrite the 
whole mbox file (which would be madness for large folders, when you often 
change message flags like read, answered, etc.) but rather use the binary 
index of the message start into the message.


With Maildir, concurrent access is possible, since each message is its own 
file. At most, the index might be out of sync, and in that case the mail 
application can simply re-generate the index.

Cheers,
Reinhold

- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, Vienna, Austria
email: reinhold@kainhofer.com, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at
 * K Desktop Environment, http://www.kde.org/, KOrganizer maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDOGRQTqjEwhXvPN0RAoofAJwI21s0a2y+Vc/J+GHWsRJFEFw+CACfdUe0
sL8RLGI8yUUuUiLu7dZhyZE=
=77jU
-----END PGP SIGNATURE-----



Reply to: