mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 19:08:09 +01:00
notmuch-show: identify which messages printed matched the query string
The show command outputs all messages in the threads that match the search-terms. This patch introduces a 'match:[01]' entry to the 'message{' line output by the show command. Value of 1 indicates that the message is matching the search expression. Signed-off-by: Bart Trojanowski <bart@jukie.net>
This commit is contained in:
parent
62878f71c2
commit
b9e96ccb0d
1 changed files with 2 additions and 1 deletions
|
@ -155,9 +155,10 @@ show_message (void *ctx, notmuch_message_t *message, int indent)
|
||||||
const char *name, *value;
|
const char *name, *value;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
printf ("\fmessage{ id:%s depth:%d filename:%s\n",
|
printf ("\fmessage{ id:%s depth:%d match:%d filename:%s\n",
|
||||||
notmuch_message_get_message_id (message),
|
notmuch_message_get_message_id (message),
|
||||||
indent,
|
indent,
|
||||||
|
notmuch_message_get_flag (message, NOTMUCH_MSG_FLAG_MATCHING_SEARCH),
|
||||||
notmuch_message_get_filename (message));
|
notmuch_message_get_filename (message));
|
||||||
|
|
||||||
printf ("\fheader{\n");
|
printf ("\fheader{\n");
|
||||||
|
|
Loading…
Reference in a new issue