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 27534429E44
\r
6 for <notmuch@notmuchmail.org>; Sat, 10 Jan 2015 06:22:56 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=2.438 tagged_above=-999 required=5
\r
12 tests=[DNS_FROM_AHBL_RHSBL=2.438] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id lCz34+Y2tCNj for <notmuch@notmuchmail.org>;
\r
16 Sat, 10 Jan 2015 06:22:53 -0800 (PST)
\r
17 Received: from s75.web-hosting.com (s75.web-hosting.com [198.187.31.9])
\r
18 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id EB41E429E40
\r
21 for <notmuch@notmuchmail.org>; Sat, 10 Jan 2015 06:22:52 -0800 (PST)
\r
22 Received: from user-69-73-37-128.knology.net ([69.73.37.128]:33454
\r
23 helo=tz-lab) by server75.web-hosting.com with esmtpsa
\r
24 (UNKNOWN:DHE-RSA-AES128-SHA:128) (Exim 4.82) (envelope-from
\r
25 <todd@electricoding.com>) id 1Y9wwC-003wv9-2f; Sat, 10 Jan 2015 09:22:48
\r
27 From: Todd <todd@electricoding.com>
\r
28 To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org
\r
29 Subject: Re: [PATCH] Index Content-Type of attachments with a contenttype
\r
31 In-Reply-To: <87ppanj9i9.fsf@maritornes.cs.unb.ca>
\r
32 Message-ID: <87k30u90nv.fsf@electricoding.com>
\r
33 References: <1420849787-4401-1-git-send-email-todd@electricoding.com>
\r
34 <87ppanj9i9.fsf@maritornes.cs.unb.ca>
\r
35 User-Agent: Notmuch/0.19+17~gd8b219d (http://notmuchmail.org) Emacs/24.4.1
\r
36 (x86_64-unknown-linux-gnu)
\r
37 Date: Sat, 10 Jan 2015 08:22:25 -0600
\r
39 Content-Type: text/plain
\r
40 X-AntiAbuse: This header was added to track abuse,
\r
41 please include it with any abuse report
\r
42 X-AntiAbuse: Primary Hostname - server75.web-hosting.com
\r
43 X-AntiAbuse: Original Domain - notmuchmail.org
\r
44 X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
\r
45 X-AntiAbuse: Sender Address Domain - electricoding.com
\r
46 X-Get-Message-Sender-Via: server75.web-hosting.com: authenticated_id:
\r
47 todd@electricoding.com
\r
51 Cc: Austin Clements <aclements@csail.mit.edu>
\r
52 X-BeenThere: notmuch@notmuchmail.org
\r
53 X-Mailman-Version: 2.1.13
\r
55 List-Id: "Use and development of the notmuch mail system."
\r
56 <notmuch.notmuchmail.org>
\r
57 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
58 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
59 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
60 List-Post: <mailto:notmuch@notmuchmail.org>
\r
61 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
62 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
63 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
64 X-List-Received-Date: Sat, 10 Jan 2015 14:22:56 -0000
\r
67 >>>>> "DB" == David Bremner <david@tethera.net> writes:
\r
69 DB> Todd <todd@electricoding.com> writes:
\r
70 >> I wanted to tag messages with calendar invitations, but couldn't as
\r
71 >> the information wasn't indexed.
\r
73 >> This patch allows for queries for like:
\r
75 >> Find calendar invites
\r
76 >> - contenttype:text/calendar or contenttype:applicaton/ics
\r
78 >> Find any image attachments
\r
79 >> - contenttype:image
\r
82 >> - contenttype:text/x-patch
\r
84 DB> The main issue, that I won't really address in this message (because I'm
\r
85 DB> hoping Austin finds time to comment) is upgrading the database. The short
\r
86 DB> version is that a new "database feature" needs to be created.
\r
88 I just discovered and starting using notmuch this week, so I'm not
\r
89 entirely familiar with the project yet. I had suspected there might
\r
90 be more work :) I'll look into the "database feature".
\r
92 My other thought was to just index the content-type with the
\r
93 attachment prefix. This would have made the first search that I
\r
94 attempted (without reading the docs/source) work
\r
95 (e.g. attachment:text/calendar or attachment:application/ics).
\r
97 Is this preferred to adding a new search term?
\r
102 >> @@ -15,6 +15,12 @@ keyboard shortcuts to saved searches.
\r
103 >> Command-Line Interface
\r
104 >> ----------------------
\r
106 DB> Minor point, 0.19 was released, you should start a new NEWS section for
\r
107 DB> 0.20 with date UNRELEASED
\r
109 I'll make that change.
\r
111 >> --- a/completion/notmuch-completion.bash
\r
112 >> +++ b/completion/notmuch-completion.bash
\r
114 DB> If you can without too much suffering, it would be nice to update the zsh completion at the same
\r
117 I don't use zsh, but I'll look into what's needed.
\r
119 >> +The **contenttype:** prefix can be used to search for specific
\r
120 >> +content-types of attachments to email messages (as specified by the
\r
124 DB> I'm not 100% sure, but I did wonder if the docs should mention MIME
\r
125 DB> somewhere, for people searching.
\r
129 >> { "attachment", "XATTACHMENT" },
\r
130 >> + { "contenttype", "XCONTENTTYPE"},
\r
131 >> { "subject", "XSUBJECT"},
\r
133 DB> I didn't work through all the details, but I did wonder if it was in
\r
134 DB> some sense redundant to be indexing contenttype and also the existing
\r
135 DB> attachement and encrypted pseudotags. I guess this might be one of
\r
136 DB> those cases where we are stuck with the extra indexing for now, until we
\r
137 DB> sort out some query parsing issues.
\r