1 Return-Path: <novalazy@gmail.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 6FB9D431FBD
\r
6 for <notmuch@notmuchmail.org>; Sat, 23 Jun 2012 20:28:22 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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 HklqSgLfIHx7 for <notmuch@notmuchmail.org>;
\r
17 Sat, 23 Jun 2012 20:28:21 -0700 (PDT)
\r
18 Received: from mail-pb0-f53.google.com (mail-pb0-f53.google.com
\r
19 [209.85.160.53]) (using TLSv1 with cipher RC4-MD5 (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 1A466431FC9
\r
22 for <notmuch@notmuchmail.org>; Sat, 23 Jun 2012 20:28:20 -0700 (PDT)
\r
23 Received: by pbbrr13 with SMTP id rr13so6402052pbb.26
\r
24 for <notmuch@notmuchmail.org>; Sat, 23 Jun 2012 20:28:19 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
26 h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;
\r
27 bh=DbV9hiTta8pBYG6cJq/FRj+P7+1gy9JCGd6XTdNvf7U=;
\r
28 b=CzNpnnCqVhLJN/T/MasnIMKcQqYJHOV6GCbuAbGpN8J5OuKgMgvw84I22Qy+3HnqdI
\r
29 JNX88XGp584VKT/Ew+dpbg/5vcY4duOicUNtH/9FGIeOMqvdZw6ROdsNspPxMgVMVlRy
\r
30 gHuCYkTiqAR0WJCuHCOURsznIEdj8J9qUtiY2i9vqhWWS6MvXdCggIpof/mQbRjMLrmm
\r
31 L4mJGJ5iVVGl0F68r3n7FuI8cjvNEnkW8mKG24808i3Uce0PGY7QTj9QVEYDC+1hXple
\r
32 UK8eGt7ZTagW2SWI6Wt6mV59/u2Gt7axzoEca3+XtiRb4tdEdzYHuLjAcUshxXdwtCaH
\r
34 Received: by 10.68.237.74 with SMTP id va10mr26656909pbc.46.1340508499028;
\r
35 Sat, 23 Jun 2012 20:28:19 -0700 (PDT)
\r
36 Received: from localhost (215.42.233.220.static.exetel.com.au.
\r
38 by mx.google.com with ESMTPS id oy8sm4080729pbc.52.2012.06.23.20.28.16
\r
39 (version=TLSv1/SSLv3 cipher=OTHER);
\r
40 Sat, 23 Jun 2012 20:28:18 -0700 (PDT)
\r
41 From: Peter Wang <novalazy@gmail.com>
\r
42 To: notmuch@notmuchmail.org
\r
43 Subject: [PATCH 2/3] show: output Reply-To headers
\r
44 Date: Sun, 24 Jun 2012 13:27:49 +1000
\r
45 Message-Id: <1340508470-16606-2-git-send-email-novalazy@gmail.com>
\r
46 X-Mailer: git-send-email 1.7.4.4
\r
47 In-Reply-To: <1340508470-16606-1-git-send-email-novalazy@gmail.com>
\r
48 References: <1340508470-16606-1-git-send-email-novalazy@gmail.com>
\r
49 X-BeenThere: notmuch@notmuchmail.org
\r
50 X-Mailman-Version: 2.1.13
\r
52 List-Id: "Use and development of the notmuch mail system."
\r
53 <notmuch.notmuchmail.org>
\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
55 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
57 List-Post: <mailto:notmuch@notmuchmail.org>
\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
61 X-List-Received-Date: Sun, 24 Jun 2012 03:28:22 -0000
\r
63 Output Reply-To headers when present in a message.
\r
64 These were missing in text and json output formats.
\r
66 notmuch-show.c | 10 ++++++++++
\r
67 1 files changed, 10 insertions(+), 0 deletions(-)
\r
69 diff --git a/notmuch-show.c b/notmuch-show.c
\r
70 index 8247f1d..de63f06 100644
\r
71 --- a/notmuch-show.c
\r
72 +++ b/notmuch-show.c
\r
73 @@ -198,6 +198,7 @@ format_headers_json (const void *ctx, GMimeMessage *message, notmuch_bool_t repl
\r
74 void *local = talloc_new (ctx);
\r
75 InternetAddressList *recipients;
\r
76 const char *recipients_string;
\r
77 + const char *reply_to_string;
\r
80 json_quote_str (local, "Subject"),
\r
81 @@ -217,6 +218,11 @@ format_headers_json (const void *ctx, GMimeMessage *message, notmuch_bool_t repl
\r
83 json_quote_str (local, "Cc"),
\r
84 json_quote_str (local, recipients_string));
\r
85 + reply_to_string = g_mime_message_get_reply_to (message);
\r
86 + if (reply_to_string)
\r
87 + printf (", %s: %s",
\r
88 + json_quote_str (local, "Reply-To"),
\r
89 + json_quote_str (local, reply_to_string));
\r
93 @@ -512,6 +518,7 @@ format_part_text (const void *ctx, mime_node_t *node,
\r
94 GMimeMessage *message = GMIME_MESSAGE (node->part);
\r
95 InternetAddressList *recipients;
\r
96 const char *recipients_string;
\r
97 + const char *reply_to_string;
\r
99 printf ("\fheader{\n");
\r
100 if (node->envelope_file)
\r
101 @@ -526,6 +533,9 @@ format_part_text (const void *ctx, mime_node_t *node,
\r
102 recipients_string = internet_address_list_to_string (recipients, 0);
\r
103 if (recipients_string)
\r
104 printf ("Cc: %s\n", recipients_string);
\r
105 + reply_to_string = g_mime_message_get_reply_to (message);
\r
106 + if (reply_to_string)
\r
107 + printf ("Reply-To: %s\n", reply_to_string);
\r
108 printf ("Date: %s\n", g_mime_message_get_date_as_string (message));
\r
109 printf ("\fheader}\n");
\r