]> git.notmuchmail.org Git - sup/commitdiff
BREAK_RE => /^From \S+/
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Mon, 4 Dec 2006 14:47:54 +0000 (14:47 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Mon, 4 Dec 2006 14:47:54 +0000 (14:47 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@65 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/mbox.rb

index 5c9d61205aeac346953b82faee83bdc3ca68d40b..4d53e78f95f25ae2210a9ea0a3722cf796737a2b 100644 (file)
@@ -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