Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] Delete A Source From Ferret Index
@ 2010-01-04  3:35 Jonathan Lassoff
  2010-01-05  2:21 ` Jonathan Lassoff
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Lassoff @ 2010-01-04  3:35 UTC (permalink / raw)
  To: sup-talk

I've run into a predicament with my regular-use sup index. I was hit by
the Spamassassin 2010 bug over New Years just now, and realized I ought
to take an occasional look at what gets dropped in my folder for things
marked spam.

Silly me, I ran sup-add for the maildir containing spam email, but
forgot to add an option to label it as spam.

Any suggestions for removing all messages from the index that belong to
a certain source?

Thanks,
jonathan
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [sup-talk] Delete A Source From Ferret Index
  2010-01-04  3:35 [sup-talk] Delete A Source From Ferret Index Jonathan Lassoff
@ 2010-01-05  2:21 ` Jonathan Lassoff
  2010-01-05 21:55   ` William Morgan
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Lassoff @ 2010-01-05  2:21 UTC (permalink / raw)
  To: sup-talk

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"

Cheers,
jonathan
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [sup-talk] Delete A Source From Ferret Index
  2010-01-05  2:21 ` Jonathan Lassoff
@ 2010-01-05 21:55   ` William Morgan
  2010-01-05 22:11     ` Jonathan Lassoff
  0 siblings, 1 reply; 5+ messages in thread
From: William Morgan @ 2010-01-05 21:55 UTC (permalink / raw)
  To: sup-talk

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [sup-talk] Delete A Source From Ferret Index
  2010-01-05 21:55   ` William Morgan
@ 2010-01-05 22:11     ` Jonathan Lassoff
  2010-01-05 22:45       ` William Morgan
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Lassoff @ 2010-01-05 22:11 UTC (permalink / raw)
  To: William Morgan; +Cc: sup-talk

Excerpts from William Morgan's message of Tue Jan 05 13:55:42 -0800 2010:
> 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).

Ah. Nice other way around that. Would have been an even quicker solution
in this case.

I added this recipe to the wiki:
http://sup.rubyforge.org/wiki/wiki.pl?RemovingASource

--j
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [sup-talk] Delete A Source From Ferret Index
  2010-01-05 22:11     ` Jonathan Lassoff
@ 2010-01-05 22:45       ` William Morgan
  0 siblings, 0 replies; 5+ messages in thread
From: William Morgan @ 2010-01-05 22:45 UTC (permalink / raw)
  To: sup-talk

Reformatted excerpts from Jonathan Lassoff's message of 2010-01-05:
> I added this recipe to the wiki:
> http://sup.rubyforge.org/wiki/wiki.pl?RemovingASource

One gold star!
-- 
William <wmorgan-sup@masanjin.net>
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-01-05 22:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-04  3:35 [sup-talk] Delete A Source From Ferret Index Jonathan Lassoff
2010-01-05  2:21 ` Jonathan Lassoff
2010-01-05 21:55   ` William Morgan
2010-01-05 22:11     ` Jonathan Lassoff
2010-01-05 22:45       ` William Morgan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox