mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
CLI/git: use --exclude=false when calling notmuch-search
We use notmuch search in two places in notmuch-git.py: to find which tags have a given prefix, and to see if message with given id exists locally. In both cases we do not want the presence of exclude tags (e.g. deleted) to change the results.
This commit is contained in:
parent
a5f7efd722
commit
891af1d457
1 changed files with 2 additions and 2 deletions
|
@ -254,7 +254,7 @@ def count_messages(prefix=None):
|
|||
def get_tags(prefix=None):
|
||||
"Get a list of tags with a given prefix."
|
||||
(status, stdout, stderr) = _spawn(
|
||||
args=['notmuch', 'search', '--query=sexp', '--output=tags', _tag_query(prefix)],
|
||||
args=['notmuch', 'search', '--exclude=false', '--query=sexp', '--output=tags', _tag_query(prefix)],
|
||||
stdout=_subprocess.PIPE, wait=True)
|
||||
return [tag for tag in stdout.splitlines()]
|
||||
|
||||
|
@ -719,7 +719,7 @@ class DatabaseCache:
|
|||
self._known[id] = False
|
||||
else:
|
||||
(_, stdout, stderr) = _spawn(
|
||||
args=['notmuch', 'search', '--output=files', 'id:{0}'.format(id)],
|
||||
args=['notmuch', 'search', '--exclude=false', '--output=files', 'id:{0}'.format(id)],
|
||||
stdout=_subprocess.PIPE,
|
||||
wait=True)
|
||||
self._known[id] = stdout != None
|
||||
|
|
Loading…
Reference in a new issue