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-...@masanjin.net> _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk