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 1E5AD431FC2
\r
6 for <notmuch@notmuchmail.org>; Wed, 18 Apr 2012 05:39:53 -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 vSIOvoPHC1mM for <notmuch@notmuchmail.org>;
\r
17 Wed, 18 Apr 2012 05:39:51 -0700 (PDT)
\r
18 Received: from mail-lpp01m010-f53.google.com (mail-lpp01m010-f53.google.com
\r
19 [209.85.215.53]) (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 21A90431FC4
\r
22 for <notmuch@notmuchmail.org>; Wed, 18 Apr 2012 05:39:44 -0700 (PDT)
\r
23 Received: by mail-lpp01m010-f53.google.com with SMTP id c1so5790633lah.26
\r
24 for <notmuch@notmuchmail.org>; Wed, 18 Apr 2012 05:39:44 -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=3csTSfLduuyKsm+XwcS3qTH472ZHkBu1QSCvNnWiWzg=;
\r
28 b=KXIxQwY1DDVs74Pxgn4n822M3K4WsUlxkrIHbidb87/Odd4g7x9vnYhefGIVcWDqZT
\r
29 F6sir0qHXbiRjE5VVz8oRAtKJTbZops0DYuk0kFcjdGFl3AmRxEj5oyPI/2mJgH4nLVo
\r
30 mQvwdZgkSAB1HZk0D5lYDeB0FurDQgn2WefGSH+9JzR0TcBRXbZ0Vi3aVSmmS6QsOPtM
\r
31 yqXAsak32dvls47NxCcH6IkJWg8pCcu9ntWNgqGq3DjOOep/vIrNmjcy1AzXvXNYGKmA
\r
32 soZGnfvxfZHpvPKOuC9jnZhWxNWk7TYEPNUgzqHS+20HT4ZZyCbXD+wsPUZf2Lbi2RlX
\r
34 Received: by 10.152.146.39 with SMTP id sz7mr2037980lab.3.1334752784827;
\r
35 Wed, 18 Apr 2012 05:39:44 -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 ay4sm32964881lbb.2.2012.04.18.05.39.43
\r
38 (version=TLSv1/SSLv3 cipher=OTHER);
\r
39 Wed, 18 Apr 2012 05:39:44 -0700 (PDT)
\r
40 From: Felipe Contreras <felipe.contreras@gmail.com>
\r
41 To: notmuch@notmuchmail.org
\r
42 Subject: [PATCH v2 2/3] reply: add message-id header
\r
43 Date: Wed, 18 Apr 2012 15:39:12 +0300
\r
44 Message-Id: <1334752753-23970-3-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:53 -0000
\r
62 Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
\r
64 notmuch-reply.c | 11 +++++++++++
\r
65 1 file changed, 11 insertions(+)
\r
67 diff --git a/notmuch-reply.c b/notmuch-reply.c
\r
68 index 0949d9f..d796bb2 100644
\r
69 --- a/notmuch-reply.c
\r
70 +++ b/notmuch-reply.c
\r
71 @@ -464,6 +464,8 @@ 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 + char *simple_from;
\r
78 /* The 1 means we want headers in a "pretty" order. */
\r
79 GMimeMessage *reply = g_mime_message_new (1);
\r
80 @@ -488,6 +490,8 @@ create_reply_message(void *ctx,
\r
81 if (from_addr == NULL)
\r
82 from_addr = notmuch_config_get_user_primary_email (config);
\r
84 + simple_from = talloc_strdup (ctx, from_addr);
\r
86 from_addr = talloc_asprintf (ctx, "%s <%s>",
\r
87 notmuch_config_get_user_name (config),
\r
89 @@ -508,6 +512,13 @@ create_reply_message(void *ctx,
\r
90 g_mime_object_set_header (GMIME_OBJECT (reply),
\r
91 "References", references);
\r
93 + message_id = talloc_asprintf (ctx, "<%lu-notmuch-%s>",
\r
96 + g_mime_object_set_header (GMIME_OBJECT (reply),
\r
97 + "Message-ID", message_id);
\r
98 + talloc_free (simple_from);
\r