istream-raw-mbox.h revision abe8230dd1dd37d7ccf0163100e934bb5e658c20
#ifndef __ISTREAM_RAW_MBOX_H
#define __ISTREAM_RAW_MBOX_H
/* Create a mbox stream for parsing mbox. Reading stops before From-line,
you'll have to call istream_raw_mbox_next() to get to next message. */
/* Return offset to beginning of the "\nFrom"-line. */
/* Return offset to beginning of the headers. */
/* Return offset to beginning of the body. */
/* Return the number of bytes in the body of this message. If body_size isn't
(uoff_t)-1, we'll use it as potentially valid body size to avoid actually
reading through the whole message. */
/* Return received time of current message, or (time_t)-1 if the timestamp is
broken. */
/* Return sender of current message. */
/* Jump to next message. If body_size isn't (uoff_t)-1, we'll use it as
potentially valid body size. */
/* Seek to message at given offset. offset must point to beginning of
"\nFrom ", or 0 for beginning of file. */
/* Flush all buffering. Call if you modify the mbox. */
#endif