From eabc808e1f79297aff65bb9e3adacf59a72b90ba Mon Sep 17 00:00:00 2001 From: William Morgan Date: Sun, 17 May 2009 11:36:52 -0700 Subject: [PATCH] make the default MBox start offset be 0, not nil This makes writing unit tests easier. --- lib/sup/mbox/loader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sup/mbox/loader.rb b/lib/sup/mbox/loader.rb index 11b0711..c500f36 100644 --- a/lib/sup/mbox/loader.rb +++ b/lib/sup/mbox/loader.rb @@ -9,7 +9,7 @@ class Loader < Source attr_accessor :labels ## uri_or_fp is horrific. need to refactor. - def initialize uri_or_fp, start_offset=nil, usual=true, archived=false, id=nil, labels=[] + def initialize uri_or_fp, start_offset=0, usual=true, archived=false, id=nil, labels=[] @mutex = Mutex.new @labels = ((labels || []) - LabelManager::RESERVED_LABELS).uniq.freeze -- 2.45.2