class RMail::Mailbox::MBoxReader

Class that can parse Unix mbox style mailboxes. These mailboxes separate individual messages with a line beginning with the string “From ”.

Typical usage:

File.open("file.mbox") { |file|
  RMail::Mailbox::MBoxReader.new(file).each_message { |input|
    message = RMail::Parser.read(input)
    # do something with the message
  end
}

Or see RMail::Mailbox.parse_mbox for a more convenient interface.