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 }