From: Ricardo Mones <ricardo@mones.org>
Date: Mon, 5 Jan 2015 09:55:52 +0000 (+0100)
Subject: Fix bug #1797 “quicksearch could also search the Cc field”
X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=d4fa1c076942efbf17094123c14530d607fb6d09

Fix bug #1797 “quicksearch could also search the Cc field”

Updated patch by Barry Warsaw <barry@python.org>, thanks!
---

diff --git a/src/advsearch.c b/src/advsearch.c
index 7439bb5..962e9f6 100644
--- a/src/advsearch.c
+++ b/src/advsearch.c
@@ -395,6 +395,8 @@ static void prepare_matcher_mixed(AdvancedSearch *search)
 	debug_matcher_list("tag + subject + from matcher list", search->predicate);
 	prepare_matcher_header(search, MATCHCRITERIA_TO);
 	debug_matcher_list("tag + subject + from + to matcher list", search->predicate);
+	prepare_matcher_header(search, MATCHCRITERIA_CC);
+	debug_matcher_list("tag + subject + from + to + cc matcher list", search->predicate);
 }
 
 static void prepare_matcher(AdvancedSearch *search)
diff --git a/src/gtk/quicksearch.c b/src/gtk/quicksearch.c
index c7c705e..6f4dc00 100644
--- a/src/gtk/quicksearch.c
+++ b/src/gtk/quicksearch.c
@@ -673,7 +673,7 @@ QuickSearch *quicksearch_new()
 			 G_CALLBACK(searchtype_changed),
 			 quicksearch);
 	MENUITEM_ADD (search_type, menuitem,
-			_("From/To/Subject/Tag"), ADVANCED_SEARCH_MIXED);
+			_("From/To/Cc/Subject/Tag"), ADVANCED_SEARCH_MIXED);
 	g_signal_connect(G_OBJECT(menuitem), "activate",
 	                 G_CALLBACK(searchtype_changed),
 			 quicksearch);
