]> git.cworth.org Git - sup/commitdiff
Fix a bug in sup-tweak-label when multiple sources are given.
authorNicolas Pouillard <nicolas.pouillard@gmail.com>
Mon, 16 Mar 2009 18:41:08 +0000 (19:41 +0100)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Mon, 23 Mar 2009 14:53:50 +0000 (10:53 -0400)
Resent...

bin/sup-tweak-labels

index 4d1313eef08d8dbacdfba9a5475d4f8666489dd8..0beb77e2c57858f03d7b33e59c23ca5dadd8d5e9 100644 (file)
@@ -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