diff options
-rw-r--r-- | 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 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 ( |