[PATCH v4 0/7] emacs: Improve the cited message included in replies
[notmuch-archives.git] / 69 / c2cd62998d4796f3ba2f44ab2baf8ce685e2f1
1 Return-Path: <todd@electricoding.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 97E55431FDA\r
6         for <notmuch@notmuchmail.org>; Tue, 13 Jan 2015 16:01:06 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
9 X-Spam-Flag: NO\r
10 X-Spam-Score: 2.438\r
11 X-Spam-Level: **\r
12 X-Spam-Status: No, score=2.438 tagged_above=-999 required=5\r
13         tests=[DNS_FROM_AHBL_RHSBL=2.438] 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 yV3ZFs1hAWEa for <notmuch@notmuchmail.org>;\r
17         Tue, 13 Jan 2015 16:01:04 -0800 (PST)\r
18 Received: from s75.web-hosting.com (s75.web-hosting.com [198.187.31.9])\r
19         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id B4164431FCF\r
22         for <notmuch@notmuchmail.org>; Tue, 13 Jan 2015 16:01:02 -0800 (PST)\r
23 Received: from user-69-73-37-128.knology.net ([69.73.37.128]:38910\r
24         helo=localhost.localdomain)\r
25         by server75.web-hosting.com with esmtpsa (UNKNOWN:AES128-SHA256:128)\r
26         (Exim 4.82) (envelope-from <todd@electricoding.com>)\r
27         id 1YBBOQ-001yjE-0k; Tue, 13 Jan 2015 19:01:02 -0500\r
28 From: Todd <todd@electricoding.com>\r
29 To: notmuch@notmuchmail.org\r
30 Subject: [PATCH v2 3/5] Add indexing for the mimetype term\r
31 Date: Tue, 13 Jan 2015 18:00:26 -0600\r
32 Message-Id: <1421193628-2699-4-git-send-email-todd@electricoding.com>\r
33 X-Mailer: git-send-email 1.9.1\r
34 In-Reply-To: <1421193628-2699-1-git-send-email-todd@electricoding.com>\r
35 References: <1421193628-2699-1-git-send-email-todd@electricoding.com>\r
36 In-Reply-To: <8761ce7s16.fsf@nikula.org>\r
37 References: <8761ce7s16.fsf@nikula.org>\r
38 X-AntiAbuse: This header was added to track abuse,\r
39         please include it with any abuse report\r
40 X-AntiAbuse: Primary Hostname - server75.web-hosting.com\r
41 X-AntiAbuse: Original Domain - notmuchmail.org\r
42 X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]\r
43 X-AntiAbuse: Sender Address Domain - electricoding.com\r
44 X-Get-Message-Sender-Via: server75.web-hosting.com: authenticated_id:\r
45         todd@electricoding.com\r
46 X-Source: \r
47 X-Source-Args: \r
48 X-Source-Dir: \r
49 X-BeenThere: notmuch@notmuchmail.org\r
50 X-Mailman-Version: 2.1.13\r
51 Precedence: list\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: Wed, 14 Jan 2015 00:01:06 -0000\r
62 \r
63 ---\r
64  lib/database.cc | 1 +\r
65  lib/index.cc    | 6 ++++++\r
66  2 files changed, 7 insertions(+)\r
67 \r
68 diff --git a/lib/database.cc b/lib/database.cc\r
69 index 2de60f8..7c7a267 100644\r
70 --- a/lib/database.cc\r
71 +++ b/lib/database.cc\r
72 @@ -254,6 +254,7 @@ static prefix_t PROBABILISTIC_PREFIX[]= {\r
73      { "from",                  "XFROM" },\r
74      { "to",                    "XTO" },\r
75      { "attachment",            "XATTACHMENT" },\r
76 +    { "mimetype",              "XMIMETYPE"},\r
77      { "subject",               "XSUBJECT"},\r
78  };\r
79  \r
80 diff --git a/lib/index.cc b/lib/index.cc\r
81 index 1a2e63d..2e27558 100644\r
82 --- a/lib/index.cc\r
83 +++ b/lib/index.cc\r
84 @@ -318,6 +318,12 @@ _index_mime_part (notmuch_message_t *message,\r
85         return;\r
86      }\r
87  \r
88 +\r
89 +    GMimeContentType*  content_type = g_mime_object_get_content_type(part);\r
90 +    if (content_type) {\r
91 +       _notmuch_message_gen_terms (message, "mimetype", g_mime_content_type_to_string(content_type));\r
92 +    }\r
93 +\r
94      if (GMIME_IS_MULTIPART (part)) {\r
95         GMimeMultipart *multipart = GMIME_MULTIPART (part);\r
96         int i;\r
97 -- \r
98 1.9.1\r
99 \r