Fix bug #1797 “quicksearch could also search the Cc field”
authorRicardo Mones <ricardo@mones.org>
Mon, 5 Jan 2015 09:55:52 +0000 (10:55 +0100)
committerRicardo Mones <ricardo@mones.org>
Mon, 5 Jan 2015 09:55:52 +0000 (10:55 +0100)
Updated patch by Barry Warsaw <barry@python.org>, thanks!

src/advsearch.c
src/gtk/quicksearch.c

index 7439bb5..962e9f6 100644 (file)
@@ -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)
index c7c705e..6f4dc00 100644 (file)
@@ -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);