[PATCH v2 14/14] cli/reply: only pass gmime message to add recipients to reply message
[notmuch-archives.git] / b1 / bb777d1422502701958e4a0ae9d78b9f6c8d4b
1 Return-Path: <felipe.contreras@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 CDC1341A550\r
6         for <notmuch@notmuchmail.org>; Thu,  9 Dec 2010 14:33:02 -0800 (PST)\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 JXEkVmeWCMiN for <notmuch@notmuchmail.org>;\r
17         Thu,  9 Dec 2010 14:33:01 -0800 (PST)\r
18 Received: from mail-bw0-f52.google.com (mail-bw0-f52.google.com\r
19         [209.85.214.52])\r
20         by olra.theworths.org (Postfix) with ESMTP id DF7E641A552\r
21         for <notmuch@notmuchmail.org>; Thu,  9 Dec 2010 14:32:58 -0800 (PST)\r
22 Received: by mail-bw0-f52.google.com with SMTP id 4so3710179bwz.39\r
23         for <notmuch@notmuchmail.org>; Thu, 09 Dec 2010 14:32:58 -0800 (PST)\r
24 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
25         h=domainkey-signature:received:received:from:to:cc:subject:date\r
26         :message-id:x-mailer:in-reply-to:references;\r
27         bh=5z2UzA66VdyxO/DLhlTGYh6bU0sPuyxPPe+clGYmnvg=;\r
28         b=Pzno3nxS/lDpLCzAtb0ZqAWIIUL453YtQ3dI78i0J2W49j/6X+84GCK4HvXB4TT91B\r
29         RPgMffFmiQmML90JtnMO9JUkHHsyfNrzO1Ji4znV9lxX7jBrTrMYjgUXBKCFgqc0DPpz\r
30         VwJpsGQBEGlYJIjX7dV8WnqyyzeAGzrAcEnL8=\r
31 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
32         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
33         b=OvV2Ms41P3lUcOOFW9+GbMninDSa7fZBnVr8GlrwKBJeDR0pLnafZKQIgSWIA4id99\r
34         Lny6rwAozhiiPWuQb24CiL0ChsQUg7EFPQXeW5UrXnIrjutlopKlQX6DAzb4qdtOXZlA\r
35         Re1H4qjVHjAGMzxyqjinK9EiWCAgimQvY2ptc=\r
36 Received: by 10.204.73.154 with SMTP id q26mr3965609bkj.204.1291933978566;\r
37         Thu, 09 Dec 2010 14:32:58 -0800 (PST)\r
38 Received: from localhost (a91-153-253-80.elisa-laajakaista.fi [91.153.253.80])\r
39         by mx.google.com with ESMTPS id q18sm1221372bka.3.2010.12.09.14.32.57\r
40         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
41         Thu, 09 Dec 2010 14:32:58 -0800 (PST)\r
42 From: Felipe Contreras <felipe.contreras@gmail.com>\r
43 To: notmuch@notmuchmail.org\r
44 Subject: [PATCH 2/3] reply: add user-agent field\r
45 Date: Fri, 10 Dec 2010 00:32:51 +0200\r
46 Message-Id: <1291933972-7186-3-git-send-email-felipe.contreras@gmail.com>\r
47 X-Mailer: git-send-email 1.7.3.2\r
48 In-Reply-To: <1291933972-7186-1-git-send-email-felipe.contreras@gmail.com>\r
49 References: <1291933972-7186-1-git-send-email-felipe.contreras@gmail.com>\r
50 X-BeenThere: notmuch@notmuchmail.org\r
51 X-Mailman-Version: 2.1.13\r
52 Precedence: list\r
53 List-Id: "Use and development of the notmuch mail system."\r
54         <notmuch.notmuchmail.org>\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
58 List-Post: <mailto:notmuch@notmuchmail.org>\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
62 X-List-Received-Date: Thu, 09 Dec 2010 22:33:03 -0000\r
63 \r
64 Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>\r
65 ---\r
66  notmuch-reply.c |    7 ++++++-\r
67  1 files changed, 6 insertions(+), 1 deletions(-)\r
68 \r
69 diff --git a/notmuch-reply.c b/notmuch-reply.c\r
70 index 53a12c5..fc5dac4 100644\r
71 --- a/notmuch-reply.c\r
72 +++ b/notmuch-reply.c\r
73 @@ -447,7 +447,7 @@ notmuch_reply_format_default(void *ctx, notmuch_config_t *config, notmuch_query_\r
74      notmuch_message_t *message;\r
75      const char *subject, *from_addr = NULL;\r
76      const char *in_reply_to, *orig_references, *references;\r
77 -    const char *message_id;\r
78 +    const char *message_id, *user_agent;\r
79      char *simple_from;\r
80  \r
81      for (messages = notmuch_query_search_messages (query);\r
82 @@ -500,6 +500,11 @@ notmuch_reply_format_default(void *ctx, notmuch_config_t *config, notmuch_query_\r
83         g_mime_object_set_header (GMIME_OBJECT (reply),\r
84                                   "References", references);\r
85  \r
86 +       user_agent = talloc_asprintf (ctx, "notmuch %s",\r
87 +                                     STRINGIFY(NOTMUCH_VERSION));\r
88 +       g_mime_object_set_header (GMIME_OBJECT (reply),\r
89 +                                 "User-Agent", user_agent);\r
90 +\r
91         message_id = talloc_asprintf (ctx, "<%lu-notmuch-%s>",\r
92                                       time(NULL),\r
93                                       simple_from);\r
94 -- \r
95 1.7.3.2\r
96 \r