From b56a688589c946ff8224f3d9e2e73de2edbc39b4 Mon Sep 17 00:00:00 2001 From: Kalyan Sriram Date: Sat, 28 Nov 2020 19:33:48 +0000 Subject: notmuch: trim excluded tags Trims whitespace in list of excluded notmuch tags. This allows a comma separated list with spaces to be correctly processed. --- worker/notmuch/worker.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'worker/notmuch/worker.go') diff --git a/worker/notmuch/worker.go b/worker/notmuch/worker.go index 67888ff..6281744 100644 --- a/worker/notmuch/worker.go +++ b/worker/notmuch/worker.go @@ -507,6 +507,9 @@ func (w *worker) loadExcludeTags( return nil } excludedTags := strings.Split(raw, ",") + for idx, tag := range excludedTags { + excludedTags[idx] = strings.Trim(tag, " ") + } return excludedTags } -- cgit 1.4.1-2-gfad0