Subject: [sup-talk] [PATCH] Fix a bug in sup-tweak-label when multiple sources are given.

From: [email-masked] (Nicolas Pouillard)
Date: Mon, 16 Mar 2009 19:41:08 +0100

Resent...

---
 bin/sup-tweak-labels |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/bin/sup-tweak-labels b/bin/sup-tweak-labels
index 4d1313e..0beb77e 100644
--- a/bin/sup-tweak-labels
+++ b/bin/sup-tweak-labels
@@ -71,7 +71,7 @@ begin
   end.map { |s| s.id }
   Trollop::die "nothing to do: no sources" if source_ids.empty?
 
-  query = "+(" + source_ids.map { |id| "source_id:#{id}" }.join(" ") + ")"
+  query = "+(" + source_ids.map { |id| "source_id:#{id}" }.join(" OR ") + ")"
   if add_labels.empty?
     ## if all we're doing is removing labels, we can further restrict the
     ## query to only messages with those labels

-- 
Nicolas Pouillard

---

From: [email-masked] (William Morgan)
Date: Mon, 23 Mar 2009 07:54:08 -0700

Applied directly to master, thanks!
-- 
William <wmorgan-sup at masanjin.net>