From: Michael Stapelberg <michael+sup@stapelberg.de>
To: sup-devel@rubyforge.org
Subject: [sup-devel] [Heliotrope] when importing mail from sup, label "killed" doesn't get changed to "muted"
Date: Sun, 08 Jan 2012 21:27:11 +0000 [thread overview]
Message-ID: <1326057857-sup-7185@stapelberg.de> (raw)
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
next reply other threads:[~2012-01-08 23:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-08 21:27 Michael Stapelberg [this message]
2012-01-09 23:37 ` William Morgan
2012-01-15 4:54 ` William Morgan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1326057857-sup-7185@stapelberg.de \
--to=michael+sup@stapelberg.de \
--cc=sup-devel@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox