aboutsummaryrefslogtreecommitdiffstats
path: root/worker/notmuch
diff options
context:
space:
mode:
Diffstat (limited to 'worker/notmuch')
-rw-r--r--worker/notmuch/worker.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/worker/notmuch/worker.go b/worker/notmuch/worker.go
index aa0d1135..d1eb69d0 100644
--- a/worker/notmuch/worker.go
+++ b/worker/notmuch/worker.go
@@ -678,9 +678,9 @@ func (w *worker) emitMessageInfo(m *Message,
}
switch {
case len(w.headersExclude) > 0:
- lib.LimitHeaders(info.RFC822Headers, w.headersExclude, true)
+ info.RFC822Headers = lib.LimitHeaders(info.RFC822Headers, w.headersExclude, true)
case len(w.headers) > 0:
- lib.LimitHeaders(info.RFC822Headers, w.headers, false)
+ info.RFC822Headers = lib.LimitHeaders(info.RFC822Headers, w.headers, false)
}
switch parent {
case nil: