Excerpts from vasudeva's message of Thu Oct 25 05:57:24 -0700 2007:
> That seems useful to me. Say you've got 3000 messages labeled, and now
> you want to change the label without painstakingly loading them all
> into your view. Maybe you've just finished syncing ten trillion
> emails from your old mbox sources and realize you didn't plan your
> label strategy very well...
This could be done fairly easily with the console (only in SVN right
now, but I could package it in the gems as well). Something like:
$ sh devel/console.sh
[Tue Oct 30 14:47:24 -0700 2007] loading index...
[Tue Oct 30 14:47:24 -0700 2007] loaded index of 64258 messages
>> Index.ferret.search_each("label:sup") do |id, score|
m = Index.build_message id
m.labels -= [:sup]
m.labels += [:potato]
Index.sync_message m
end
>> Index.ferret.optimize
--
William <[EMAIL PROTECTED]>
_______________________________________________
sup-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/sup-talk