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 9BC5E431FC2
\r
6 for <notmuch@notmuchmail.org>; Wed, 18 Apr 2012 05:39:54 -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 9GtYZ5ekjjM3 for <notmuch@notmuchmail.org>;
\r
17 Wed, 18 Apr 2012 05:39:53 -0700 (PDT)
\r
18 Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com
\r
19 [209.85.217.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 5D336431FC7
\r
22 for <notmuch@notmuchmail.org>; Wed, 18 Apr 2012 05:39:47 -0700 (PDT)
\r
23 Received: by mail-lb0-f181.google.com with SMTP id b5so2794488lbd.26
\r
24 for <notmuch@notmuchmail.org>; Wed, 18 Apr 2012 05:39:47 -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=wlhKJ4+LN3M62W/+etfkZLNapOFAQoDYxwhPtAYKrdY=;
\r
28 b=QKrzCf53AxV7tdbRS+FmJQBYKIqbGdmjW4/EcTvCPmuqdMc+xknBZpdYMEgiI8a7kR
\r
29 qr7maahP6y9OcGFzYIMoJHhzQ5qpKt8Nu4HUYMBs74S5tusQks11wBlR0EdtgNUEB/vx
\r
30 yk38pzCoo1C7XJRmfahZvigKSWkR93BnIUtCf0TBVeOimDuJ6ad9Za8avxNsQJfwys1r
\r
31 ca8+oqEk6/BIpgUMDApD7s4zn0rPgvrddLI/LuZkt54gOqPjVrJslAjEjPYfdB1u45bW
\r
32 tJg0fRO9/3N+/iNUE/VOXwB4Ej5ebbmZO0arUFMSuHRUnA+pKUJMXl27xoJeGNNcXSxb
\r
34 Received: by 10.152.131.74 with SMTP id ok10mr1990978lab.17.1334752787075;
\r
35 Wed, 18 Apr 2012 05:39:47 -0700 (PDT)
\r
36 Received: from localhost (85-156-70-103.elisa-mobile.fi. [85.156.70.103])
\r
37 by mx.google.com with ESMTPS id py12sm26194886lab.4.2012.04.18.05.39.45
\r
38 (version=TLSv1/SSLv3 cipher=OTHER);
\r
39 Wed, 18 Apr 2012 05:39:46 -0700 (PDT)
\r
40 From: Felipe Contreras <felipe.contreras@gmail.com>
\r
41 To: notmuch@notmuchmail.org
\r
42 Subject: [PATCH v2 3/3] reply: add user-agent field
\r
43 Date: Wed, 18 Apr 2012 15:39:13 +0300
\r
44 Message-Id: <1334752753-23970-4-git-send-email-felipe.contreras@gmail.com>
\r
45 X-Mailer: git-send-email 1.7.10
\r
46 In-Reply-To: <1334752753-23970-1-git-send-email-felipe.contreras@gmail.com>
\r
47 References: <1334752753-23970-1-git-send-email-felipe.contreras@gmail.com>
\r
48 X-BeenThere: notmuch@notmuchmail.org
\r
49 X-Mailman-Version: 2.1.13
\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: Wed, 18 Apr 2012 12:39:54 -0000
\r
62 Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
\r
64 notmuch-reply.c | 8 +++++++-
\r
65 1 file changed, 7 insertions(+), 1 deletion(-)
\r
67 diff --git a/notmuch-reply.c b/notmuch-reply.c
\r
68 index d796bb2..22838d5 100644
\r
69 --- a/notmuch-reply.c
\r
70 +++ b/notmuch-reply.c
\r
71 @@ -464,7 +464,7 @@ create_reply_message(void *ctx,
\r
73 const char *subject, *from_addr = NULL;
\r
74 const char *in_reply_to, *orig_references, *references;
\r
75 - const char *message_id;
\r
76 + const char *message_id, *user_agent;
\r
79 /* The 1 means we want headers in a "pretty" order. */
\r
80 @@ -512,6 +512,7 @@ create_reply_message(void *ctx,
\r
81 g_mime_object_set_header (GMIME_OBJECT (reply),
\r
82 "References", references);
\r
85 message_id = talloc_asprintf (ctx, "<%lu-notmuch-%s>",
\r
88 @@ -519,6 +520,11 @@ create_reply_message(void *ctx,
\r
89 "Message-ID", message_id);
\r
90 talloc_free (simple_from);
\r
92 + user_agent = talloc_asprintf (ctx, "notmuch %s",
\r
93 + STRINGIFY(NOTMUCH_VERSION));
\r
94 + g_mime_object_set_header (GMIME_OBJECT (reply),
\r
95 + "User-Agent", user_agent);
\r