Details
struct GMimeParser
struct GMimeParser {
GObject parent_object;
struct _GMimeParserPrivate *priv;
}; |
GMimeParserHeaderRegexFunc ()
void (*GMimeParserHeaderRegexFunc) (GMimeParser *parser,
const char *header,
const char *value,
off_t offset,
gpointer user_data); |
g_mime_parser_new ()
Creates a new parser object.
g_mime_parser_init_with_stream ()
Initializes parser to use stream.
WARNING: Initializing a parser with a stream is comparable to
selling your soul (stream) to the devil (parser). You are
basically giving the parser complete control of the stream, this
means that you had better not touch the stream so long as the
parser is still using it. This means no reading, writing, seeking,
or resetting of the stream. Anything that will/could change the
current stream's offset is PROHIBITED.
It is also recommended that you not use g_mime_stream_tell because
it will not necessarily give you the current parser offset since
parser handles its own internal read-ahead buffer. Instead, it is
recommended that you use g_mime_parser_tell if you have a reason
to need the current offset of the parser.
g_mime_parser_set_scan_from ()
void g_mime_parser_set_scan_from (GMimeParser *parser,
gboolean scan_from); |
Sets whether or not parser should scan mbox-style From-lines.
g_mime_parser_get_scan_from ()
gboolean g_mime_parser_get_scan_from (GMimeParser *parser); |
Gets whether or not parser is set to scan mbox-style From-lines.
g_mime_parser_set_header_regex ()
Sets the regular expression pattern regex on parser. Whenever a
header matching the pattern regex is parsed, header_cb is called
with user_data as the user_data argument.
g_mime_parser_tell ()
Gets the current stream offset from the parser's internal stream.
g_mime_parser_eos ()
Tests the end-of-stream indicator for parser's internal stream.
g_mime_parser_construct_part ()
Constructs a MIME part from parser.
g_mime_parser_construct_message ()
Constructs a MIME message from parser.