Perhaps you could also add documentation on the folder format?
The format for Yarn folders is quite similar to the SOUP "binary clean
mail" format, although with one small difference.
In the SOUP format mentioned above, before each message is its length,
as a four-byte unsigned value, in big-endian order. This means that
if the four bytes you read are "B0 B1 B2 B3", then the length of the
message is
B0 * 256 * 256 * 256 + B1 * 256 * 256 + B2 * 256 + B3
Yarn uses the little-endian order, probably because that's what DOS
and OS/2 use. This way, Yarn can read the length with one read call.
Similar to the previous example, if you now read "B0 B1 B2 B3" from
a Yarn mail folder, the length is
B2 * 256 * 256 * 256 + B3 * 256 * 256 + B0 * 256 + B1
--
E-mail: galactus@stack.nl | PGP encrypt if you can (Key ID 0x416A1A35)
http://www.stack.nl/~galactus/ | To find out more about PGP, send mail
| with HELP PGP in the SUBJECT line to me.