config: only exclude messages if 'search.exclude_tags' is explicitly set
authorPieter Praet <pieter@praet.org>
Mon, 23 Jan 2012 04:22:34 +0000 (05:22 +0100)
committerDavid Bremner <bremner@debian.org>
Mon, 23 Jan 2012 23:21:18 +0000 (19:21 -0400)
commitba33a15ec3ab80b175cf54d2584aa8acd1a2dc6e
tree85bb31d0db34ed6fec7416131aba1aea6a042fd6
parent6795c62a50815786fd168536371cf6b9ed817535
config: only exclude messages if 'search.exclude_tags' is explicitly set

Currently, the 'search.exclude_tags' option is automatically
set to "deleted;spam;" if it's missing from the config file.

This violates the Principle of Least Surprise, so *only* set
'search.exclude_tags' to "deleted;spam;" if we didn't find a
configuration file at all.

This patch is actually Austin Clements' work:
  id:"20120117203211.GQ16740@mit.edu"
notmuch-config.c
test/search