From: wmorgan-sup@masanjin.net (William Morgan)
Subject: [sup-talk] Refreshing inbox & removing +inbox label
Date: Tue, 30 Oct 2007 14:54:36 -0700 [thread overview]
Message-ID: <1193781249-sup-5262@south> (raw)
In-Reply-To: <20071025125724.GA5250@lenin.sovietwar.org>
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 <wmorgan-sup at masanjin.net>
next prev parent reply other threads:[~2007-10-30 21:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <0a4e8b9700043d81@IMSS-WIN>
[not found] ` <472063D9.40704@quintic.co.uk>
2007-10-25 9:49 ` Alexander Panek
2007-10-25 12:57 ` vasudeva
2007-10-30 21:54 ` William Morgan [this message]
[not found] ` <0b19eaf10004a252@IMSS-WIN>
2007-10-26 10:13 ` Marcus Williams
2007-10-25 9:08 Alexander Panek
2007-10-25 9:31 ` Alexander Panek
2007-10-25 16:49 ` Christopher Warrington
2007-10-30 21:41 ` 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=1193781249-sup-5262@south \
--to=wmorgan-sup@masanjin.net \
/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