diff options
Diffstat (limited to 'worker')
-rw-r--r-- | worker/lib/search.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/worker/lib/search.go b/worker/lib/search.go index 31e4843f..d44e2ce1 100644 --- a/worker/lib/search.go +++ b/worker/lib/search.go @@ -53,11 +53,9 @@ func SearchMessage(message rfc822.RawMessage, criteria *types.SearchCriteria, return false, err } } - if parts&HEADER > 0 || parts&DATE > 0 || (parts&(BODY|ALL)) == 0 { - info, err = rfc822.MessageInfo(message) - if err != nil { - return false, err - } + info, err = rfc822.MessageInfo(message) + if err != nil { + return false, err } switch { case parts&BODY > 0: |