message-parser.h revision da18528bccce3e1ba9c97c7bf06799b952d7bc3f
#ifndef __MESSAGE_PARSER_H
#define __MESSAGE_PARSER_H
typedef struct _MessagePart MessagePart;
typedef struct _MessagePosition MessagePosition;
typedef struct _MessageSize MessageSize;
struct _MessageSize {
unsigned int lines;
};
struct _MessagePart {
unsigned int multipart:1;
unsigned int multipart_digest:1;
unsigned int message_rfc822:1;
void *context;
};
/* NOTE: name and value aren't \0-terminated */
void *context);
/* func is called for each field in message header. */
/* Call func for each field in message header. Fills the hdr_size.
part can be NULL, just make sure your header function works with it.
This function doesn't use temp. mempool so your header function may save
return values to it. When finished, inbuf will point to beginning of
message body. */
#endif