Subject: Re: [sup-talk] Delete A Source From Ferret Index

From: Jonathan Lassoff <[email-masked]>
Date: Tue, 05 Jan 2010 14:11:48 -0800

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
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: William Morgan <[email-masked]>
Date: Tue, 05 Jan 2010 14:45:44 -0800

> http://sup.rubyforge.org/wiki/wiki.pl?RemovingASource

One gold star!
-- 
William <[email-masked]>
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Jonathan Lassoff <[email-masked]>
Date: Mon, 04 Jan 2010 18:21:34 -0800

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

---

From: William Morgan <[email-masked]>
Date: Tue, 05 Jan 2010 13:55:42 -0800

>   ">> 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.

---

From: Jonathan Lassoff <[email-masked]>
Date: Sun, 03 Jan 2010 19:35:08 -0800

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.

Thanks,
jonathan