From 781820627f1cb87df898d1a7b5f3b56c6fa20b77 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Tue, 29 Aug 2023 13:15:46 -0500 Subject: notmuch: replace notmuch library with internal bindings Replace the notmuch library used with our internal bindings. Signed-off-by: Tim Culverhouse Acked-by: Robin Jarry --- worker/notmuch/eventhandlers.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'worker/notmuch/eventhandlers.go') diff --git a/worker/notmuch/eventhandlers.go b/worker/notmuch/eventhandlers.go index a6ab7668..d4d75628 100644 --- a/worker/notmuch/eventhandlers.go +++ b/worker/notmuch/eventhandlers.go @@ -21,6 +21,11 @@ func (w *worker) handleNotmuchEvent(et eventType) error { } func (w *worker) handleUpdateDirCounts() error { + err := w.db.Connect() + if err != nil { + return err + } + defer w.db.Close() if w.store != nil { folders, err := w.store.FolderMap() if err != nil { -- cgit