diff options
author | Robin Jarry <robin@jarry.cc> | 2023-10-17 14:40:08 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-10-28 19:24:55 +0200 |
commit | 57088312fdd8e602a084bd5736a0e22a34be9ec0 (patch) | |
tree | 8c5544262cf8c1772ec661748cfa4d5491ff4c77 /worker/jmap | |
parent | 591659b52867cb118d1f82d41693a02123935e0c (diff) | |
download | aerc-57088312fdd8e602a084bd5736a0e22a34be9ec0.tar.gz |
worker: move shared code to lib
Avoid importing code from worker/lib into lib. It should only be the
other way around. Move the message parsing code used by maildir,
notmuch, mbox and the eml viewer into a lib/rfc822 package.
Adapt imports accordingly.
Signed-off-by: Robin Jarry <robin@jarry.cc>
Reviewed-by: Koni Marti <koni.marti@gmail.com>
Tested-by: Moritz Poldrack <moritz@poldrack.dev>
Tested-by: Inwit <inwit@sindominio.net>
Diffstat (limited to 'worker/jmap')
-rw-r--r-- | worker/jmap/search.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/worker/jmap/search.go b/worker/jmap/search.go index a751b700..17b5ca11 100644 --- a/worker/jmap/search.go +++ b/worker/jmap/search.go @@ -3,8 +3,8 @@ package jmap import ( "strings" + "git.sr.ht/~rjarry/aerc/lib/parse" "git.sr.ht/~rjarry/aerc/log" - "git.sr.ht/~rjarry/aerc/worker/lib" "git.sr.ht/~rockorager/go-jmap/mail/email" "git.sr.ht/~sircmpwn/getopt" ) @@ -38,7 +38,7 @@ func parseSearch(args []string) (*email.FilterCondition, error) { case 'a': text = true case 'd': - start, end, err := lib.ParseDateRange(opt.Value) + start, end, err := parse.DateRange(opt.Value) if err != nil { log.Errorf("failed to parse start date: %v", err) continue |