notmuch: trim excluded tags

Trims whitespace in list of excluded notmuch tags. This allows a comma
separated list with spaces to be correctly processed.
This commit is contained in:
Kalyan Sriram 2020-11-28 19:33:48 +00:00 committed by Reto Brunner
parent a9330f4c63
commit b56a688589

View file

@ -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
}