[evolution] Lets the saved searches to work.



commit 07fb0ffe30832ef51769c856393260f8716131d0
Author: Chenthill Palanisamy <pchenthill novell com>
Date:   Fri Oct 30 16:01:13 2009 +0530

    Lets the saved searches to work.

 modules/mail/e-mail-shell-view.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/modules/mail/e-mail-shell-view.c b/modules/mail/e-mail-shell-view.c
index 346d0fe..a60d6db 100644
--- a/modules/mail/e-mail-shell-view.c
+++ b/modules/mail/e-mail-shell-view.c
@@ -93,6 +93,7 @@ mail_shell_view_execute_search (EShellView *shell_view)
 	EMailShellContent *mail_shell_content;
 	MessageList *message_list;
 	EFilterRule *rule;
+	EFilterRule *search_rule;
 	EMailReader *reader;
 	CamelFolder *folder;
 	GtkAction *action;
@@ -335,6 +336,18 @@ filter:
 			break;
 	}
 
+	search_rule = e_shell_content_get_search_rule (mail_shell_content);
+	if (search_rule != NULL) {
+		string = g_string_sized_new (1024);
+		e_filter_rule_build_code (search_rule, string);
+		temp = g_strconcat ("(and", string->str, query, ")", NULL);
+		
+		g_free (query);
+		query = temp;
+
+		g_string_free (string, TRUE);
+	}
+
 	message_list_set_search (message_list, query);
 
 	e_mail_shell_content_set_search_strings (



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]