From 1965503ae5758d0a43f7819a26e25c406c57512b Mon Sep 17 00:00:00 2001 From: wmorgan Date: Mon, 4 Dec 2006 14:47:54 +0000 Subject: [PATCH] BREAK_RE => /^From \S+/ git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@65 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- lib/sup/mbox.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sup/mbox.rb b/lib/sup/mbox.rb index 5c9d612..4d53e78 100644 --- a/lib/sup/mbox.rb +++ b/lib/sup/mbox.rb @@ -4,14 +4,14 @@ module Redwood ## some utility functions module MBox - BREAK_RE = /^From \S+@\S+/ + BREAK_RE = /^From \S+/ def read_header f header = {} last = nil ## i do it in this weird way because i am trying to speed things up - ## at load-message time. + ## when scanning over large mbox files. while(line = f.gets) case line when /^From:\s+(.*)$/i: header[last = "From"] = $1 -- 2.45.2