Re: [PATCH 0/3 v2 ] improve `notmuch-show-clean-address'
[notmuch-archives.git] / 9c / c6a1633b0bf31841827148dc927869bc7c8c7e
1 Return-Path: <patricktotzke@googlemail.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 9E71B431FD0\r
6         for <notmuch@notmuchmail.org>; Sat, 23 Jul 2011 02:54:28 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id hH24oGM7sTuX for <notmuch@notmuchmail.org>;\r
17         Sat, 23 Jul 2011 02:54:27 -0700 (PDT)\r
18 Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com\r
19         [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id ACD1B429E26\r
22         for <notmuch@notmuchmail.org>; Sat, 23 Jul 2011 02:54:19 -0700 (PDT)\r
23 Received: by wyh22 with SMTP id 22so2256908wyh.26\r
24         for <notmuch@notmuchmail.org>; Sat, 23 Jul 2011 02:54:18 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
26         d=googlemail.com; s=gamma;\r
27         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
28         bh=3ZB4OVddzc8bKhEFHqpYL94HPkLzX1ZODpeWYN64CSg=;\r
29         b=Sn9S0z/YZwfxegTCRiop1v/qUiIn/ReE7gYgxhFFZOqHNLVYSrLajPcce/lEHlU5v0\r
30         X9RoAcsvDO/Dz4fdU1lifFYazF8SWejt2Dk1oKpH5ki3e7NPYG2MPlOkJ1GJXHa8Tyyx\r
31         ZjpipPUudkh7+YtFdMbsaN6CyTHklKgQnRBtM=\r
32 Received: by 10.227.39.66 with SMTP id f2mr2129884wbe.2.1311414858273;\r
33         Sat, 23 Jul 2011 02:54:18 -0700 (PDT)\r
34 Received: from localhost (cpc1-sgyl2-0-0-cust47.sgyl.cable.virginmedia.com\r
35         [80.192.18.48])\r
36         by mx.google.com with ESMTPS id b13sm2595154wbh.24.2011.07.23.02.54.16\r
37         (version=TLSv1/SSLv3 cipher=OTHER);\r
38         Sat, 23 Jul 2011 02:54:17 -0700 (PDT)\r
39 From: pazz <patricktotzke@googlemail.com>\r
40 To: notmuch@notmuchmail.org\r
41 Subject: [PATCH 2/2] json: date_relative for threads\r
42 Date: Sat, 23 Jul 2011 10:54:04 +0100\r
43 Message-Id: <1311414844-12378-2-git-send-email-patricktotzke@gmail.com>\r
44 X-Mailer: git-send-email 1.7.4.1\r
45 In-Reply-To: <1311414844-12378-1-git-send-email-patricktotzke@gmail.com>\r
46 References: <20110715210459.GA12727@brick.lan>\r
47         <1311414844-12378-1-git-send-email-patricktotzke@gmail.com>\r
48 X-BeenThere: notmuch@notmuchmail.org\r
49 X-Mailman-Version: 2.1.13\r
50 Precedence: list\r
51 List-Id: "Use and development of the notmuch mail system."\r
52         <notmuch.notmuchmail.org>\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
56 List-Post: <mailto:notmuch@notmuchmail.org>\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
60 X-List-Received-Date: Sat, 23 Jul 2011 09:54:28 -0000\r
61 \r
62 include the date_relative field in the\r
63 json formated output of notmuch search\r
64 ---\r
65  notmuch-search.c |    2 ++\r
66  1 files changed, 2 insertions(+), 0 deletions(-)\r
67 \r
68 diff --git a/notmuch-search.c b/notmuch-search.c\r
69 index faccaf7..b1adc03 100644\r
70 --- a/notmuch-search.c\r
71 +++ b/notmuch-search.c\r
72 @@ -176,12 +176,14 @@ format_thread_json (const void *ctx,\r
73  \r
74      printf ("\"thread\": %s,\n"\r
75             "\"timestamp\": %ld,\n"\r
76 +           "\"date_relative\": \"%s\",\n"\r
77             "\"matched\": %d,\n"\r
78             "\"total\": %d,\n"\r
79             "\"authors\": %s,\n"\r
80             "\"subject\": %s,\n",\r
81             json_quote_str (ctx_quote, thread_id),\r
82             date,\r
83 +           notmuch_time_relative_date (ctx, date),\r
84             matched,\r
85             total,\r
86             json_quote_str (ctx_quote, authors),\r
87 -- \r
88 1.7.4.1\r
89 \r