[PATCH v2 0/3] Improve the display of matching/non-matching authors.
David Edmondson
dme at dme.org
Fri Oct 24 10:44:00 PDT 2014
Improve the display of matching/non-matching authors.
Distinguishing between matching and non-matching authors in the emacs
interface is currently done by parsing the :authors attribute of a
search result. If one of the authors uses the pipe symbol (|) in their
'From' address this parsing incorrectly determines the matching and
non-matching authors.
Address this by adding explicit matching and non-matching authors
attributes to the structured output formats.
v2:
- Return the matching/non-matching authors as a list.
- More improvements to the code that renders the authors are possible
(to improve the chosen break between visible and invisible), but a
planned re-write of the `notmuch-search-result-format' code would
render that irrelevant.
David Edmondson (3):
search: Separately report matching and non-matching authors.
emacs: Improved display of matching/non-matching authors.
test: Update tests for 'authors_matched' and authors_non_matched'.
emacs/notmuch.el | 64 ++++++++++++++------------
notmuch-search.c | 105 +++++++++++++++++++++++++++++++++++++++++++
test/T160-json.sh | 9 ++++
test/T170-sexp.sh | 4 +-
test/T470-missing-headers.sh | 8 ++++
5 files changed, 159 insertions(+), 31 deletions(-)
--
2.1.1
More information about the notmuch
mailing list