diff options
author | Reto Brunner <reto@labrat.space> | 2019-08-28 06:39:07 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-08-29 08:44:10 +0900 |
commit | 94b9d557dee0fd13853b1883cc2730c5cbdbcd3f (patch) | |
tree | 8a0040b60df9ab4fa3d7f9d137d126a04fd5943b /lib/msgstore.go | |
parent | ac99d9ed62644cf0259bdd79481b28c3fbcef650 (diff) |
extract search criteria parsing into the backends
Diffstat (limited to 'lib/msgstore.go')
-rw-r--r-- | lib/msgstore.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/msgstore.go b/lib/msgstore.go index 169d51d..77f0fe5 100644 --- a/lib/msgstore.go +++ b/lib/msgstore.go @@ -4,8 +4,6 @@ import ( "io" "time" - "github.com/emersion/go-imap" - "git.sr.ht/~sircmpwn/aerc/models" "git.sr.ht/~sircmpwn/aerc/worker/types" ) @@ -368,9 +366,9 @@ func (store *MessageStore) Prev() { store.NextPrev(-1) } -func (store *MessageStore) Search(c *imap.SearchCriteria, cb func([]uint32)) { +func (store *MessageStore) Search(args []string, cb func([]uint32)) { store.worker.PostAction(&types.SearchDirectory{ - Criteria: c, + Argv: args, }, func(msg types.WorkerMessage) { switch msg := msg.(type) { case *types.SearchResults: |