X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=bin%2Fsup-dump;h=992fd0bb74cd0aa7da29729ae38b460d0aad8bc8;hb=906ab35e87c099d411ffb53ac7602e55c23b08ea;hp=29f6d6ee7cb3ad4a3d95e3a381c77feca7b053a6;hpb=d66683c3375b48810d8f6ca49805943f9997c84f;p=sup diff --git a/bin/sup-dump b/bin/sup-dump index 29f6d6e..992fd0b 100755 --- a/bin/sup-dump +++ b/bin/sup-dump @@ -22,10 +22,9 @@ EOS end index = Redwood::Index.new +Redwood::SourceManager.new index.load -(1 ... index.index.reader.max_doc).each do |i| - next if index.index.deleted? i - d = index.index[i] - puts [d[:message_id], "(" + d[:label] + ")"] * " " +index.each_message :load_spam => true, :load_deleted => true, :load_killed => true do |m| + puts "#{m.id} (#{m.labels.to_a * ' '})" end