Re: [WIP PATCH] emacs: query: completion for from: in searches
[notmuch-archives.git] / 17 / 223c67ec0b4a8ffb5c9d58e512101f0f544c70
1 Return-Path: <matt@bubblegen.co.uk>\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 E528A429E30\r
6         for <notmuch@notmuchmail.org>; Tue, 17 Feb 2015 14:25:27 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 2.438\r
10 X-Spam-Level: **\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 12DBvIfjimUM for <notmuch@notmuchmail.org>;\r
16         Tue, 17 Feb 2015 14:25:24 -0800 (PST)\r
17 X-Greylist: delayed 390 seconds by postgrey-1.32 at olra;\r
18         Tue, 17 Feb 2015 14:25:24 PST\r
19 Received: from sip.bubblegen.co.uk (bubblegen.plus.com [80.229.236.194])\r
20         (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
21         (No client certificate requested)\r
22         by olra.theworths.org (Postfix) with ESMTPS id 944DD431E82\r
23         for <notmuch@notmuchmail.org>; Tue, 17 Feb 2015 14:25:24 -0800 (PST)\r
24 Message-ID: <54E3BAE1.1030004@bubblegen.co.uk>\r
25 Date: Tue, 17 Feb 2015 22:04:17 +0000\r
26 From: Matthew Lear <matt@bubblegen.co.uk>\r
27 MIME-Version: 1.0\r
28 To: notmuch@notmuchmail.org\r
29 Subject: Inspired but need help searching folder names containing spaces\r
30 Content-Type: text/plain; charset=utf-8\r
31 Content-Transfer-Encoding: 8bit\r
32 X-Mailman-Approved-At: Tue, 17 Feb 2015 22:52:21 -0800\r
33 X-BeenThere: notmuch@notmuchmail.org\r
34 X-Mailman-Version: 2.1.13\r
35 Precedence: list\r
36 List-Id: "Use and development of the notmuch mail system."\r
37         <notmuch.notmuchmail.org>\r
38 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
39         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
40 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
41 List-Post: <mailto:notmuch@notmuchmail.org>\r
42 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
43 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
45 X-List-Received-Date: Tue, 17 Feb 2015 22:25:28 -0000\r
46 \r
47 Hello all,\r
48 \r
49 As part of trying to cope with an extremely high amount of email at\r
50 work, after a couple years of using X1 Search on Windows in conjunction\r
51 with MS Outlook and many years getting incredibly frustrated at the lack\r
52 of, and then failures of, email search features built into linux desktop\r
53 environments such as KDE and Gnome, I craved a better tool for linux.\r
54 Recently, I stumbled on the combination of offlineimap and notmuch and\r
55 I'm convinced that this will make my world a better place. I'm still\r
56 finding my way in terms of optimum ways to tag and filter my email, but\r
57 this is a fun ongoing task that will continue over the coming weeks and\r
58 months and I'm seeing a light at the end of the tunnel. So firstly,\r
59 thank you.\r
60 \r
61 So...One thing I'm struggling with is searching for emails in folders\r
62 which contain spaces in their name. The IMAP server at work is Exchange\r
63 based and I have Inbox, Deleted Items and Sent Items folders (among many\r
64 others) all at the same top level. I'm using the default offlineimap\r
65 configuration which uses '.' as the separator. After a sync I have...\r
66 \r
67 mail/maildir/\r
68 ├── INBOX\r
69 ├── Deleted Items\r
70 ...\r
71 └── Sent Items\r
72 \r
73 ....on the file system. These directories have the cur, new and tmp sub\r
74 directories associated with maildir. All ok so far.\r
75 \r
76 I have several emails in Deleted Items and Sent Items. I can ls and cat\r
77 them just fine. What I cannot do, however, is search them with notmuch.\r
78 Reading the very helpful replies in this thread\r
79 (http://notmuchmail.org/pipermail/notmuch/2014/019053.html), I thought\r
80 I'd stumbled on a solution. However, searching with..\r
81 \r
82 notmuch search 'folder:"Deleted Items"'\r
83 \r
84 .. throws up zero results.\r
85 \r
86 Confusingly, if I sync a different IMAP account with offlineimap and\r
87 index it with notmuch, I can successfully search folders which contain\r
88 spaces in their name, but in that account, these folders exist *under*\r
89 INBOX, eg\r
90 \r
91 mail/maildir2/\r
92 ├── INBOX\r
93 ├── INBOX.Deleted Items\r
94 ...\r
95 └── INBOX.Sent Items\r
96 \r
97 So searching with..\r
98 \r
99 notmuch search 'folder:"INBOX.Deleted Items"'\r
100 \r
101 ..works.\r
102 \r
103 So why the difference? AFAICT the syntax I'm using is correct and should\r
104 allow the string to be searched in the Xapian database. I just don't\r
105 understand why one directory level seems to make a difference between a\r
106 successful and an unsuccessful search.\r
107 \r
108 Any thoughts?\r
109 \r
110 If it helps I'm running notmuch 0.19 and xapian 1.2.18 on Gentoo linux.\r
111 \r
112 I suppose I don't need to sync Deleted Items, and I can tag -inbox\r
113 emails sent by me, but I'd still like to be able to search both these\r
114 folders if I need to.\r
115 \r
116 Can anybody help suggest what could be going wrong?\r
117 \r
118 Many thanks from a very happy new notmuch user.\r
119 --  Matt\r