From: William Morgan Date: Sun, 17 May 2009 18:36:52 +0000 (-0700) Subject: make the default MBox start offset be 0, not nil X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=eabc808e1f79297aff65bb9e3adacf59a72b90ba;p=sup make the default MBox start offset be 0, not nil This makes writing unit tests easier. --- 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