Use stdio.h.
mbox format is simple text, delimited (at least on unix systems) by a
line that starts with "From " -- note the space and lack of colon.
There is absolutely nothing else special about the file.
True, but presumably the OP is looking for a library in standard C
that separates the messages, parses the message headers and so on.
Probably the "mail" program on any free unix system includes such
functions, though whether they are nicely packaged as a library is
another matter.
-- Richard[/QUOTE]
First off, thank-you for the replies.
I have looked at the specification, and even then it is quite simple. I
know that each message has an ID, and that the messages are seperated by
a new line (however, there are newlines inside the message content, so
would need to search for From:... as well).
I've been googling for mbox and mbox library and mbox.c etc. and it may
be that KMail's library is written in C, I could use that perhaps.
Just wandering if anyone knew of one, that I hadn't found.
Thanks again.