From 1402b68e05a1f701bed2a9cb377fe02cbe69109e Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 6 Aug 2002 05:23:13 +0000 Subject: Set the rule name to include the search string, for #10979. 2002-08-06 Not Zed * folder-browser.c (folder_browser_search_menu_activated): Set the rule name to include the search string, for #10979. svn path=/trunk/; revision=17712 --- mail/folder-browser.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'mail/folder-browser.c') diff --git a/mail/folder-browser.c b/mail/folder-browser.c index b367d124d3..da11702d2c 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -1104,7 +1104,14 @@ folder_browser_search_menu_activated (ESearchBar *esb, int id, FolderBrowser *fb d(printf("Save vfolder\n")); if (efb->current_query) { FilterRule *rule = vfolder_clone_rule(efb->current_query); - + char *name, *text; + + text = e_search_bar_get_text(esb); + name = g_strdup_printf("%s %s", rule->name, (text&&text[0])?text:"''"); + g_free(text); + filter_rule_set_name(rule, name); + g_free(name); + filter_rule_set_source(rule, FILTER_SOURCE_INCOMING); vfolder_rule_add_source((VfolderRule *)rule, fb->uri); vfolder_gui_add_rule((VfolderRule *)rule); -- cgit