]> git.cworth.org Git - sup/blobdiff - lib/sup/mbox/loader.rb
handle carriage returns in mbox files
[sup] / lib / sup / mbox / loader.rb
index 58f4fc7d8fefbf2379edf315e6bc97ad8cc187ea..7fe912900e16d477fc7d690873d92e9c623f48c2 100644 (file)
@@ -85,7 +85,7 @@ class Loader < Source
     ret = ""
     @mutex.synchronize do
       @f.seek offset
-      until @f.eof? || (l = @f.gets) =~ /^$/
+      until @f.eof? || (l = @f.gets) =~ /^\r*$/
         ret += l
       end
     end