Class: RMail::Parser

Class RMail::Parser |
In: | rmail/parser.rb
Parent: | Object

The RMail::Parser class is responsible for parsing messages from files.

Methods

new parse

Public Class methods

new(message_class = RMail::Message)

Creates a new parser. Messages of `message_class` will be created by the parser. By default, the parser will create RMail::Message objects.

FIXME: document exactly the API `message_class` must implement in order to be functional.

Public Instance methods

parse(input)

Parse a message from the IO object `io` and return a new message.