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