aboutsummaryrefslogtreecommitdiffstats
path: root/worker/maildir
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2023-11-07 16:33:37 +0100
committerRobin Jarry <robin@jarry.cc>2023-11-12 12:53:11 +0100
commit063187340ce257a633cc5e6b503112db306be2e6 (patch)
tree5a444320a2fe2280ab287c0a937fd351d53b4722 /worker/maildir
parent23ba54784a49fe13c665396c49a5ab3baa70ebd5 (diff)
downloadaerc-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/maildir')
-rw-r--r--worker/maildir/search.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/worker/maildir/search.go b/worker/maildir/search.go
index cf954753..8a19d66d 100644
--- a/worker/maildir/search.go
+++ b/worker/maildir/search.go
@@ -11,8 +11,8 @@ import (
)
func (w *Worker) search(ctx context.Context, criteria *types.SearchCriteria) ([]uint32, error) {
+ criteria.PrepareHeader()
requiredParts := lib.GetRequiredParts(criteria)
-
w.worker.Debugf("Required parts bitmask for search: %b", requiredParts)
keys, err := w.c.UIDs(*w.selected)