aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchenthill@novell.com>2009-10-30 18:31:13 +0800
committerChenthill Palanisamy <pchenthill@novell.com>2009-10-30 18:31:13 +0800
commit07fb0ffe30832ef51769c856393260f8716131d0 (patch)
tree851627afd29a7215c9975d8afaf9fc21c0518c2d /modules/mail
parentadadf13c770799faa9ff3935a165bff5f1522f3d (diff)
downloadgsoc2013-evolution-07fb0ffe30832ef51769c856393260f8716131d0.tar.gz
gsoc2013-evolution-07fb0ffe30832ef51769c856393260f8716131d0.tar.zst
gsoc2013-evolution-07fb0ffe30832ef51769c856393260f8716131d0.zip
Lets the saved searches to work.
Diffstat (limited to 'modules/mail')
-rw-r--r--modules/mail/e-mail-shell-view.c13
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 346d0fed35..a60d6db0a7 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 (