# File lib/sup/mbox/loader.rb, line 71 def load_message offset @mutex.synchronize do @f.seek offset begin ## don't use RMail::Mailbox::MBoxReader because it doesn't properly ignore ## "From" at the start of a message body line. string = "" l = @f.gets string << l until @f.eof? || MBox::is_break_line?(l = @f.gets) RMail::Parser.read string rescue RMail::Parser::Error => e raise FatalSourceError, "error parsing mbox file: #{e.message}" end end end