]> git.notmuchmail.org Git - notmuch/commit
search-tags: Add support for search-terms.
authorJan Janak <jan@ryngle.com>
Wed, 25 Nov 2009 03:30:22 +0000 (04:30 +0100)
committerCarl Worth <cworth@cworth.org>
Thu, 26 Nov 2009 15:06:41 +0000 (07:06 -0800)
commit5a447b00ac3a3c0c23a28d281c330590320af099
treee066a156458d13670ca77e324067552c8d1056c9
parent523a6f67ecc94efd37dcdf570d66edc62497a8fb
search-tags: Add support for search-terms.

This patch adds support for search-terms to 'notmuch search-tags'. If
no search-term is provided then the command returns a list of all tags
from the database.

If the user provides one or more search-terms as arguments then the
command collects tags from matching messages only.

This could be used by functions in the Emacs mode to further limit the
list of tags offered for completion. For example, functions that remove
tags from message(s) could offer only tags present in the message(s).

Signed-off-by: Jan Janak <jan@ryngle.com>
notmuch-search-tags.c
notmuch.c