[PATCH 9/9] add has: query prefix to search for specific properties
[notmuch-archives.git] / d8 / d170cb07c1ffa06fb06dd2f3fb05344c3ea2d5
1 Return-Path: <perttu.luukko@iki.fi>\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 0C9EE431FB6\r
6         for <notmuch@notmuchmail.org>; Wed,  3 Sep 2014 21:35:08 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 QGo4+8MS3KWn for <notmuch@notmuchmail.org>;\r
16         Wed,  3 Sep 2014 21:34:58 -0700 (PDT)\r
17 Received: from mail.kapsi.fi (mail.kapsi.fi [217.30.184.167])\r
18         (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 840AF431FAF\r
21         for <notmuch@notmuchmail.org>; Wed,  3 Sep 2014 21:34:58 -0700 (PDT)\r
22 Received: from dsl-jklbrasgw1-54fb12-136.dhcp.inet.fi ([84.251.18.136]\r
23         helo=localhost)\r
24         by mail.kapsi.fi with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16)\r
25         (Exim 4.72) (envelope-from <perttu.luukko@iki.fi>)\r
26         id 1XPOky-0004mq-0H; Thu, 04 Sep 2014 07:34:48 +0300\r
27 Date: Thu, 4 Sep 2014 07:34:35 +0300\r
28 From: Perttu Luukko <perttu.luukko@iki.fi>\r
29 To: Jani Nikula <jani@nikula.org>\r
30 Subject: Re: How to debug 'ignoring non-mail file' issues\r
31 Message-ID: <20140904043435.GA3987@rakuuna.dhcp.inet.fi>\r
32 References: <20140831074059.GA13399@rakuuna.dhcp.inet.fi>\r
33         <87tx4ssoux.fsf@maritornes.cs.unb.ca>\r
34         <20140901065220.GB3901@lakka.kapsi.fi>\r
35         <20140901071526.GA13634@lakka.kapsi.fi> <87r3ztvjwn.fsf@nikula.org>\r
36         <20140903045439.GA5022@rakuuna.dhcp.inet.fi>\r
37         <87oauwadyb.fsf@nikula.org>\r
38 MIME-Version: 1.0\r
39 Content-Type: text/plain; charset=us-ascii\r
40 Content-Disposition: inline\r
41 In-Reply-To: <87oauwadyb.fsf@nikula.org>\r
42 User-Agent: Mutt/1.5.22.1 (2013-10-16)\r
43 X-SA-Exim-Connect-IP: 84.251.18.136\r
44 X-SA-Exim-Mail-From: perttu.luukko@iki.fi\r
45 X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false\r
46 Cc: notmuch@notmuchmail.org\r
47 X-BeenThere: notmuch@notmuchmail.org\r
48 X-Mailman-Version: 2.1.13\r
49 Precedence: list\r
50 List-Id: "Use and development of the notmuch mail system."\r
51         <notmuch.notmuchmail.org>\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
55 List-Post: <mailto:notmuch@notmuchmail.org>\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
58         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
59 X-List-Received-Date: Thu, 04 Sep 2014 04:35:08 -0000\r
60 \r
61 On 2014-09-03 19:03:40, Jani Nikula wrote:\r
62 > On Wed, 03 Sep 2014, Perttu Luukko <perttu.luukko@iki.fi> wrote:\r
63 > > What I mean that there would be a separate error for cases "Does not\r
64 > > resemble an email message at all", i.e., some control file your mail\r
65 > > server happens to store in the mailbox, and "Looks like mail but we\r
66 > > can't parse it", i.e., better find out why it can't be parsed to avoid\r
67 > > potentially important messages going missing from the database.\r
68\r
69 > As I said, GMime does not tell us the difference between the two.\r
70 \r
71 There could be a separate parsing step that reads the first kilobyte or\r
72 so and checks whether it is text, and whether there is a line starting\r
73 with "From: " and possibly other headers. This could be run if GMime\r
74 thinks the file is not mail so there would be negligible overhead.\r
75 \r
76 This is just a suggestion. Notmuch users are probably quite experienced\r
77 so they can always investigate on their own why their emails are being\r
78 ignored. But there could be more warning about ignored messages.\r
79 Something like, at the end of each 'notmuch new' output: "Note: some\r
80 files were ignored as non-mail. Check the list at\r
81 ~/mail/.notmuch/ignored-files and adjust your ~/.notmuch-config".\r
82 \r
83 -- \r
84 Perttu\r