diff options
Diffstat (limited to 'worker')
-rw-r--r-- | worker/notmuch/worker.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/worker/notmuch/worker.go b/worker/notmuch/worker.go index 13c9d976..3b0ee829 100644 --- a/worker/notmuch/worker.go +++ b/worker/notmuch/worker.go @@ -572,8 +572,8 @@ func (w *worker) loadQueryMap(acctConfig *config.AccountConfig) error { if len(split) != 2 { return fmt.Errorf("%v: invalid line %q, want name=query", file, line) } - w.nameQueryMap[split[0]] = split[1] - w.queryMapOrder = append(w.queryMapOrder, split[0]) + w.nameQueryMap[strings.TrimSpace(split[0])] = split[1] + w.queryMapOrder = append(w.queryMapOrder, strings.TrimSpace(split[0])) } return nil } |