aboutsummaryrefslogtreecommitdiff
path: root/src/quick_search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick_search.c')
-rw-r--r--src/quick_search.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/quick_search.c b/src/quick_search.c
index 28f69795..484d0d29 100644
--- a/src/quick_search.c
+++ b/src/quick_search.c
@@ -220,6 +220,11 @@ GSList *quick_search_filter(QuickSearch *qsearch, QSearchCondType type,
cond = filter_cond_new(FLT_COND_HEADER, FLT_CONTAIN, 0,
"From", key);
cond_list = g_slist_append(cond_list, cond);
+ if (FOLDER_ITEM_IS_SENT_FOLDER(summaryview->folder_item)) {
+ cond = filter_cond_new(FLT_COND_TO_OR_CC, FLT_CONTAIN,
+ 0, NULL, key);
+ cond_list = g_slist_append(cond_list, cond);
+ }
rule = filter_rule_new("Quick search rule", FLT_OR, cond_list,
NULL);
}