1 Return-Path: <jani@nikula.org>
\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 7D00F431FD6
\r
6 for <notmuch@notmuchmail.org>; Thu, 15 Jan 2015 09:16:10 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=1.738 tagged_above=-999 required=5
\r
12 tests=[DNS_FROM_AHBL_RHSBL=2.438, RCVD_IN_DNSWL_LOW=-0.7]
\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 tyOWUoktZpWF for <notmuch@notmuchmail.org>;
\r
17 Thu, 15 Jan 2015 09:16:07 -0800 (PST)
\r
18 Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com
\r
19 [209.85.212.176]) (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 1910B431FBC
\r
22 for <notmuch@notmuchmail.org>; Thu, 15 Jan 2015 09:16:07 -0800 (PST)
\r
23 Received: by mail-wi0-f176.google.com with SMTP id z2so10879169wiv.3
\r
24 for <notmuch@notmuchmail.org>; Thu, 15 Jan 2015 09:16:06 -0800 (PST)
\r
25 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
26 d=1e100.net; s=20130820;
\r
27 h=x-gm-message-state:from:to:subject:in-reply-to:references
\r
28 :user-agent:date:message-id:mime-version:content-type;
\r
29 bh=8oSH/4shRj56nAIqB4r7Mwz07uD1DCMO20eEPGkXvfo=;
\r
30 b=CRi5PhJHqkHyi1sGe4rtyBIERABM+ej/bqOeJWWPSYkDXp9Xvw77667jI8ky0LKh6x
\r
31 h4CZ6Ydjd+h0K5SnFxw9MDr6zY1O0PwaaSs/D4BkCWRQ1ywMxE/cUkytcWR9rwdmAWP7
\r
32 x60hiUDhUyxA05ononSNBVUrTz96woVvV+lkbW4Sm/yO1ZGUIQa2w7fhY/jrsOd36WeJ
\r
33 uj3HM3fV1dSe/bbgZvrX/BUQLqnfp1AKa27E6h8OEWvg0B8XdtpwneQWryYuT4wUrdLL
\r
34 6o3Q90Mx/AVx+evkYUYQNWoc6Kw6PUVev17NyOWbtEN4ADbXnYtx5RwkYcAnIj/mnksW
\r
37 ALoCoQn2cYYFTK1uHhi9VLGRC4nAFMJUxhyLnY4LJpVnQgfXyYViPZS+Zct5h9Jtok9kEAdJSO6r
\r
38 X-Received: by 10.180.103.6 with SMTP id fs6mr28725130wib.11.1421342165836;
\r
39 Thu, 15 Jan 2015 09:16:05 -0800 (PST)
\r
40 Received: from localhost (mobile-internet-bcee14-89.dhcp.inet.fi.
\r
42 by mx.google.com with ESMTPSA id pl1sm8230607wic.16.2015.01.15.09.16.04
\r
43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
\r
44 Thu, 15 Jan 2015 09:16:05 -0800 (PST)
\r
45 From: Jani Nikula <jani@nikula.org>
\r
46 To: Todd <todd@electricoding.com>, notmuch@notmuchmail.org
\r
47 Subject: Re: [PATCH v2 3/5] Add indexing for the mimetype term
\r
48 In-Reply-To: <1421193628-2699-4-git-send-email-todd@electricoding.com>
\r
49 References: <1421193628-2699-1-git-send-email-todd@electricoding.com>
\r
50 <1421193628-2699-4-git-send-email-todd@electricoding.com>
\r
51 User-Agent: Notmuch/0.19+19~g9060a1f (http://notmuchmail.org) Emacs/24.4.1
\r
52 (x86_64-pc-linux-gnu)
\r
53 Date: Thu, 15 Jan 2015 19:16:17 +0200
\r
54 Message-ID: <877fwo9d7i.fsf@nikula.org>
\r
56 Content-Type: text/plain
\r
57 X-BeenThere: notmuch@notmuchmail.org
\r
58 X-Mailman-Version: 2.1.13
\r
60 List-Id: "Use and development of the notmuch mail system."
\r
61 <notmuch.notmuchmail.org>
\r
62 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
63 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
64 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
65 List-Post: <mailto:notmuch@notmuchmail.org>
\r
66 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
67 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
68 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
69 X-List-Received-Date: Thu, 15 Jan 2015 17:16:10 -0000
\r
72 Please add a commit message.
\r
74 On Wed, 14 Jan 2015, Todd <todd@electricoding.com> wrote:
\r
76 > lib/database.cc | 1 +
\r
77 > lib/index.cc | 6 ++++++
\r
78 > 2 files changed, 7 insertions(+)
\r
80 > diff --git a/lib/database.cc b/lib/database.cc
\r
81 > index 2de60f8..7c7a267 100644
\r
82 > --- a/lib/database.cc
\r
83 > +++ b/lib/database.cc
\r
84 > @@ -254,6 +254,7 @@ static prefix_t PROBABILISTIC_PREFIX[]= {
\r
85 > { "from", "XFROM" },
\r
87 > { "attachment", "XATTACHMENT" },
\r
88 > + { "mimetype", "XMIMETYPE"},
\r
89 > { "subject", "XSUBJECT"},
\r
92 > diff --git a/lib/index.cc b/lib/index.cc
\r
93 > index 1a2e63d..2e27558 100644
\r
94 > --- a/lib/index.cc
\r
95 > +++ b/lib/index.cc
\r
96 > @@ -318,6 +318,12 @@ _index_mime_part (notmuch_message_t *message,
\r
102 Superfluous newline.
\r
104 > + GMimeContentType* content_type = g_mime_object_get_content_type(part);
\r
106 Please replace "* " with " *".
\r
108 > + if (content_type) {
\r
109 > + _notmuch_message_gen_terms (message, "mimetype", g_mime_content_type_to_string(content_type));
\r
112 Check g_mime_content_type_to_string return value, and g_free the result
\r
119 > if (GMIME_IS_MULTIPART (part)) {
\r
120 > GMimeMultipart *multipart = GMIME_MULTIPART (part);
\r
125 > _______________________________________________
\r
126 > notmuch mailing list
\r
127 > notmuch@notmuchmail.org
\r
128 > http://notmuchmail.org/mailman/listinfo/notmuch
\r