Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 5a / 9cb061c0fc1c371986148d988360fd8246f475
1 Return-Path: <cworth@cworth.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 00B50431FC0;\r
6         Wed, 18 Nov 2009 15:51:36 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 Received: from olra.theworths.org ([127.0.0.1])\r
9         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
10         with ESMTP id lLfhSiItCObh; Wed, 18 Nov 2009 15:51:35 -0800 (PST)\r
11 Received: from cworth.org (localhost [127.0.0.1])\r
12         by olra.theworths.org (Postfix) with ESMTP id 04249431FBC;\r
13         Wed, 18 Nov 2009 15:51:34 -0800 (PST)\r
14 From: Carl Worth <cworth@cworth.org>\r
15 To: Jeffrey Ollie <jeff@ocjtech.us>, Not Much Mail\r
16         <notmuch@notmuchmail.org>\r
17 In-Reply-To: <935ead450911181150i4bda379bhcebc3ef52844a0a@mail.gmail.com>\r
18 References: <87k4xnrhfp.fsf@linux.vnet.ibm.com>\r
19         <yun3a4b3b50.fsf@aiko.keithp.com>\r
20         <935ead450911181150i4bda379bhcebc3ef52844a0a@mail.gmail.com>\r
21 Date: Thu, 19 Nov 2009 00:51:20 +0100\r
22 Message-ID: <87639775on.fsf@yoom.home.cworth.org>\r
23 MIME-Version: 1.0\r
24 Content-Type: text/plain; charset=us-ascii\r
25 Subject: Re: [notmuch] [PATCH] notmuch: Add tag archive when archiving the\r
26  mails\r
27 X-BeenThere: notmuch@notmuchmail.org\r
28 X-Mailman-Version: 2.1.12\r
29 Precedence: list\r
30 List-Id: "Use and development of the notmuch mail system."\r
31         <notmuch.notmuchmail.org>\r
32 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
33         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
34 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
35 List-Post: <mailto:notmuch@notmuchmail.org>\r
36 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
37 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
38         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
39 X-List-Received-Date: Wed, 18 Nov 2009 23:51:36 -0000\r
40 \r
41 On Wed, 18 Nov 2009 13:50:58 -0600, Jeffrey Ollie <jeff@ocjtech.us> wrote:\r
42 > On Wed, Nov 18, 2009 at 1:07 PM, Keith Packard <keithp@keithp.com> wrote:\r
43 > > I think you can just use 'not tag:inbox' as 'archived' really just means\r
44 > > 'doesn't have the inbox tag'.\r
45\r
46 > That resulted in an error for me:\r
47\r
48 > $ notmuch search not tag:inbox\r
49 > A Xapian exception occurred: Syntax: <expression> NOT <expression>\r
50 > A Xapian exception occurred: Syntax: <expression> NOT <expression>\r
51 \r
52 Like I said earlier. I think that's a bug we should report to the Xapian\r
53 folks.\r
54 \r
55 Meanwhile, it just occurred to me that we can make "notmuch search not\r
56 tag:inbox" work without any change to Xapian.\r
57 \r
58 For every document we store in the database we put a special term on it\r
59 to indicate its type. (We mostly just have documents of type "mail" but\r
60 we also have documents of type "timestamp"---see the comment at the top\r
61 of lib/database.cc for details.)\r
62 \r
63 So if we take the string "not tag:inbox" and turn it into "type:mail and\r
64 not tag:inbox" then that will work just fine. (That's close to what\r
65 we're doing currently, but different. Right now we try to parse the\r
66 query "not tag:inbox" on its own and then combine the result with\r
67 another query generated from a term representing the "mail" type.)\r
68 \r
69 -Carl\r