[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sup-devel] [Heliotrope] when importing mail from sup, label "killed" doesn't get changed to "muted"



Hey again,

I recently imported my mail from sup to heliotrope and noticed that I had a lot
of threads in my inbox which were killed in sup. A quick glance at the source of
heliotrope revealed that you made the label name consistent with GMail and
renamed it to "muted". However, as the subject says, when importing, this label
is not changed.

For a quick fix after importing the messages, do the following in
heliotrope-console:

$ ruby -Ilib bin/heliotrope-console --dir /path/to/mailstore

metaindex.set_query Query.new("body", "~killed")
results = metaindex.get_some_results(metaindex.count_results)

for result in results do
   labels = result[:labels]
   labels.delete("killed")
   labels.add("muted")
   metaindex.update_thread_labels(result[:thread_id], labels)
end

Best regards,
Michael
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel