]> git.cworth.org Git - sup/commitdiff
mbox loader bugfix
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Thu, 20 Sep 2007 06:45:08 +0000 (06:45 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Thu, 20 Sep 2007 06:45:08 +0000 (06:45 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@590 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/mbox/loader.rb

index 84752281b63091d5887cb470091340dc61d3ca25..db6b16492aa761c6f61018ff7653d99bdc36f12b 100644 (file)
@@ -10,7 +10,7 @@ class Loader < Source
   ## uri_or_fp is horrific. need to refactor.
   def initialize uri_or_fp, start_offset=nil, usual=true, archived=false, id=nil, labels=[]
     @mutex = Mutex.new
-    @labels = (labels || []).freeze
+    @labels = ((labels || []) + [:unread]).freeze
 
     case uri_or_fp
     when String