gmime.parser
Module for [Parser] class
Types 3
classParser : gobject.object.ObjectWrap
A MIME parser context.
Methods
ParserGidBuilder builder() static nothrowGet builder for [gmime.parser.Parser] Returns: New builder objectgmime.parser.Parser newWithStream(gmime.stream.Stream stream) static nothrowCreates a new parser object preset to parse stream.gmime.message.Message constructMessage(gmime.parser_options.ParserOptions options = null) nothrowConstructs a MIME message from parser.gmime.object.ObjectWrap constructPart(gmime.parser_options.ParserOptions options = null) nothrowConstructs a MIME part from parser.bool eos() nothrowTests the end-of-stream indicator for parser's internal stream. Returns: true on EOS or false otherwise.gmime.types.Format getFormat() nothrowGets the format that the parser is set to parse. Returns: the format that the parser is set to parse.long getHeadersBegin() nothrowGets 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() nothrowGets 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() nothrowGets 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() nothrowGets 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() nothrowGets 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() nothrowGets 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 setFormat(gmime.types.Format format) nothrowSets the format that the parser should expect the stream to be in.void setPersistStream(bool persist) nothrowSets whether or not the parser's underlying stream is persistent.void setRespectContentLength(bool respectContentLength) nothrowSets 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() nothrowGets 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.Fluent builder implementation template for gmime.parser.Parser
Fluent builder for gmime.parser.Parser