From: William Morgan <wmorgan-sup@masanjin.net>
To: sup-talk <sup-talk@rubyforge.org>
Subject: Re: [sup-talk] Delete A Source From Ferret Index
Date: Tue, 05 Jan 2010 13:55:42 -0800 [thread overview]
Message-ID: <1262728431-sup-8471@masanjin.net> (raw)
In-Reply-To: <1262657952-sup-6680@sfo.thejof.com>
Reformatted excerpts from Jonathan Lassoff's message of 2010-01-04:
> Excerpts from Jonathan Lassoff's message of Sun Jan 03 19:35:08 -0800 2010:
> > Any suggestions for removing all messages from the index that belong to
> > a certain source?
>
> A solution that ended up working for me:
>
> - Start the devel console (cd ~/src/sup; ./devel/console.sh)
> - Search for message ids from the source you want to remove and run
> Redwood::FerretIndex#delete on each (the evil source id was 10 in my case):
> ">> Index.each_id(Index.parse_query("source_id:10")){|m| Index.delete(m)}; Index.save_index"
Nice work. A gold star to anyone who adds this to the FAQ. Two for
anyone who makes a nice bin/sup-drop-source.
In this particular case you could also have run sup-tweak-labels to add
the spam label to everything from that source (and then edited
sources.yaml to make it autoapply for any new messages).
--
William <wmorgan-sup@masanjin.net>
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
next prev parent reply other threads:[~2010-01-05 21:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-04 3:35 Jonathan Lassoff
2010-01-05 2:21 ` Jonathan Lassoff
2010-01-05 21:55 ` William Morgan [this message]
2010-01-05 22:11 ` Jonathan Lassoff
2010-01-05 22:45 ` 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=1262728431-sup-8471@masanjin.net \
--to=wmorgan-sup@masanjin.net \
--cc=sup-talk@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