mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-23 01:44:52 +01:00
json: date_relative for threads
include the date_relative field in the json formated output of notmuch search
This commit is contained in:
parent
e81e3d1bdb
commit
80936b5f58
1 changed files with 2 additions and 0 deletions
|
@ -176,12 +176,14 @@ format_thread_json (const void *ctx,
|
|||
|
||||
printf ("\"thread\": %s,\n"
|
||||
"\"timestamp\": %ld,\n"
|
||||
"\"date_relative\": \"%s\",\n"
|
||||
"\"matched\": %d,\n"
|
||||
"\"total\": %d,\n"
|
||||
"\"authors\": %s,\n"
|
||||
"\"subject\": %s,\n",
|
||||
json_quote_str (ctx_quote, thread_id),
|
||||
date,
|
||||
notmuch_time_relative_date (ctx, date),
|
||||
matched,
|
||||
total,
|
||||
json_quote_str (ctx_quote, authors),
|
||||
|
|
Loading…
Reference in a new issue