aboutsummaryrefslogtreecommitdiffstats
path: root/worker/lib
diff options
context:
space:
mode:
Diffstat (limited to 'worker/lib')
-rw-r--r--worker/lib/search.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/worker/lib/search.go b/worker/lib/search.go
index c85b3307..16e44d96 100644
--- a/worker/lib/search.go
+++ b/worker/lib/search.go
@@ -108,7 +108,7 @@ func SearchMessage(message rfc822.RawMessage, criteria *types.SearchCriteria,
}
}
- args := opt.LexArgs(criteria.Terms)
+ args := opt.LexArgs(strings.Join(criteria.Terms, " "))
for _, searchTerm := range args.Args() {
if !containsSmartCase(text, searchTerm) {
return false, nil