aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKalyan Sriram <kalyan@coderkalyan.com>2020-11-28 19:33:48 +0000
committerReto Brunner <reto@labrat.space>2020-12-02 09:08:19 +0100
commitb56a688589c946ff8224f3d9e2e73de2edbc39b4 (patch)
tree2aae6757009de254923e357558593f6811b11f15
parenta9330f4c63816ed79f6d150e998f003bea9478dd (diff)
downloadaerc-b56a688589c946ff8224f3d9e2e73de2edbc39b4.tar.gz
notmuch: trim excluded tags
Trims whitespace in list of excluded notmuch tags. This allows a comma separated list with spaces to be correctly processed.
-rw-r--r--worker/notmuch/worker.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/worker/notmuch/worker.go b/worker/notmuch/worker.go
index 67888ff1..6281744b 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
}