Sha256: e5944289605364d0b7defda5885dbe5d467abb8e7567b1d3e263d1cdb7fe0933

Contents?: true

Size: 286 Bytes

Versions: 8

Compression:

Stored size: 286 Bytes

Contents

#!/usr/bin/env ruby

require "groonga"

if ARGV.size < 1
  STDERR.puts "Usage: mournmail_reindex <path to messages.db>"
  exit 1
end

Groonga::Database.open(ARGV[0])
Groonga["Messages"].columns.each do |c|
  print "Reindexing #{c.name}... "
  STDOUT.flush
  c.reindex
  puts "done"
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mournmail-1.0.5 exe/mournmail_reindex
mournmail-1.0.4 exe/mournmail_reindex
mournmail-1.0.3 exe/mournmail_reindex
mournmail-1.0.2 exe/mournmail_reindex
mournmail-1.0.1 exe/mournmail_reindex
mournmail-1.0.0 exe/mournmail_reindex
mournmail-0.3.2 exe/mournmail_reindex
mournmail-0.3.1 exe/mournmail_reindex