From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.213.13.12 with SMTP id z12cs48028ebz; Tue, 5 Jan 2010 13:55:55 -0800 (PST) Received: by 10.224.43.168 with SMTP id w40mr12495829qae.19.1262728554317; Tue, 05 Jan 2010 13:55:54 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 36si15671317qyk.58.2010.01.05.13.55.53; Tue, 05 Jan 2010 13:55:54 -0800 (PST) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id BD06D177994A; Tue, 5 Jan 2010 16:55:53 -0500 (EST) Received: from entry.masanjin.net (masanjin.net [209.20.72.13]) by rubyforge.org (Postfix) with ESMTP id 95280177993D for ; Tue, 5 Jan 2010 16:55:42 -0500 (EST) Received: from w by entry.masanjin.net with local (Exim 4.69) (envelope-from ) id 1NSHNO-0001ca-EW for sup-talk@rubyforge.org; Tue, 05 Jan 2010 13:55:42 -0800 From: William Morgan To: sup-talk In-reply-to: <1262657952-sup-6680@sfo.thejof.com> References: <1262573310-sup-6062@sfo.thejof.com> <1262657952-sup-6680@sfo.thejof.com> Date: Tue, 05 Jan 2010 13:55:42 -0800 Message-Id: <1262728431-sup-8471@masanjin.net> User-Agent: Sup/git Subject: Re: [sup-talk] Delete A Source From Ferret Index X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org 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 _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk