gmime.parser
Module for [Parser] class
Types 3
classParser : gobject.object.ObjectWrap
A MIME parser context.
Methods
ParserGidBuilder builder()Get builder for [gmime.parser.Parser] Returns: New builder objectgmime.parser.Parser newWithStream(gmime.stream.Stream stream)Creates a new parser object preset to parse stream.gmime.message.Message constructMessage(gmime.parser_options.ParserOptions options = null)Constructs a MIME message from parser.gmime.object.ObjectWrap constructPart(gmime.parser_options.ParserOptions options = null)Constructs a MIME part from parser.bool eos()Tests the end-of-stream indicator for parser's internal stream. Returns: true on EOS or false otherwise.gmime.types.Format getFormat()Gets the format that the parser is set to parse. Returns: the format that the parser is set to parse.long getHeadersBegin()Gets the stream offset of the beginning of the headers of the most recently parsed message. Returns: the offset of the beginning of the headers of the most recently parsed message or %-1 on error.long getHeadersEnd()Gets the stream offset of the end of the headers of the most recently parsed message. Returns: the offset of the end of the headers of the most recently parsed message or %-1 on error.string getMboxMarker()Gets the mbox-style From-line of the most recently parsed message (gotten from [gmime.parser.Parser.constructMessage]). Returns: the mbox-style From-line of the most recently parsed message or null...long getMboxMarkerOffset()Gets the offset of the most recently parsed mbox-style From-line (gotten from [gmime.parser.Parser.constructMessage]). Returns: the offset of the most recently parsed mbox-style From-line or %-1 on...bool getPersistStream()Gets whether or not the underlying stream is persistent. Returns: true if the parser will leave the content on disk or false if it will load the content into memory.bool getRespectContentLength()Gets whether or not parser is set to use Content-Length for determining the offset of the end of the message. Returns: whether or not parser is set to use Content-Length for determining the offset ...void initWithStream(gmime.stream.Stream stream)Initializes parser to use stream.void setFormat(gmime.types.Format format)Sets the format that the parser should expect the stream to be in.void setPersistStream(bool persist)Sets whether or not the parser's underlying stream is persistent.void setRespectContentLength(bool respectContentLength)Sets whether or not parser should respect Content-Length headers when deciding where to look for the start of the next message. Only used when the parser is also set to scan for From-lines.long tell()Gets the current stream offset from the parser's internal stream. Returns: the current stream offset from the parser's internal stream or %-1 on error.