diff options
author | Koni Marti <koni.marti@gmail.com> | 2023-11-07 16:33:37 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-11-12 12:53:11 +0100 |
commit | 063187340ce257a633cc5e6b503112db306be2e6 (patch) | |
tree | 5a444320a2fe2280ab287c0a937fd351d53b4722 /worker/lib | |
parent | 23ba54784a49fe13c665396c49a5ab3baa70ebd5 (diff) | |
download | aerc-063187340ce257a633cc5e6b503112db306be2e6.tar.gz |
search: add rcpts fields to header in search criteria
Add recipients fields (from, to, cc) to the header for filtering and
searching for the maildir and mbox backends.
Fixes: commit 8464b373 ("search: use a common api for all workers")
Reported-by: Vitaly Ovchinnikov <v@ovch.ru>
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Tested-by: Vitaly Ovchinnikov <v@ovch.ru>
Diffstat (limited to 'worker/lib')
-rw-r--r-- | worker/lib/search.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/worker/lib/search.go b/worker/lib/search.go index a3604430..c85b3307 100644 --- a/worker/lib/search.go +++ b/worker/lib/search.go @@ -14,6 +14,7 @@ import ( ) func Search(messages []rfc822.RawMessage, criteria *types.SearchCriteria) ([]uint32, error) { + criteria.PrepareHeader() requiredParts := GetRequiredParts(criteria) matchedUids := []uint32{} |