1 Fix the things that are causing the most pain to new users
2 ----------------------------------------------------------
3 1. A new import is tagging all messages as "inbox" -- total pain
5 2. Allow an easy way to get tags from directory names (if the user has them)
7 3. Fix Xapian defect #250 so tagging is fast.
9 Emacs interface (notmuch.el)
10 ----------------------------
11 Make the keybindings help ('?') display the summary of each command's
12 documentation, not the function name.
14 Add a global keybinding table for notmuch, and then view-specific
15 tables that add to it.
17 Add a command to archive all threads in a search view.
19 Add a '|' binding from the search view.
21 Add a binding to run a search from notmuch-show-mode.
23 When a thread has been entirely read, start out by closing all
24 messages except those that matched the search terms.
26 Add support for choosing from one of the user's configured email
27 addresses for the From line.
29 Make 'notmuch-show-pipe-message have a private history.
31 Add support for a delete keybinding that adds a "deleted" tag to the
32 current message/thread and make searches not return deleted messages
33 by default, (unless the user asks explicitly for deleted messags in
36 Add support to "mute" a thread (add a "muted" tag and then don't
37 display threads in searches by default where any message of the thread
42 Fix configure script to test each compiler warning we want to use.
44 Implement strndup locally (or call talloc_strndup instead).
46 Implement getline locally, (look at gnulib).
50 Fix bash completion to complete multiple search options (both --first
51 and *then* --max-threads), and also complete value for --sort=
52 (oldest-first or newest-first).
54 notmuch command-line tool
55 -------------------------
56 Teach "notmuch search" to return many different kinds of results. Some
59 notmuch search --for threads # Default if no --for is given
60 notmuch search --for messages
61 notmuch search --for tags
62 notmuch search --for addresses
63 notmuch search --for terms
65 Add a "--format" option to "notmuch search", (something printf-like
66 for selecting what gets printed).
68 Add a "--count-only" (or so?) option to "notmuch search" for returning
69 the count of search results.
71 Give "notmuch restore" some progress indicator. Until we get the
72 Xapian bugs fixed that are making this operation slow, we really need
73 to let the user know that things are still moving.
75 Add a "-f <filename>" option to select an alternate configuration
78 Fix notmuch.c to call add_timestamp/get_timestamp with path names
79 relative to the database path. (Otherwise, moving the database to a
80 new directory will result in notmuch creating new timestamp documents
81 and leaving stale ones behind.)
83 Ensure that "notmuch new" is sane if its first, giant indexing session
84 gets interrupted, (that is, ensure that any results indexed so far are
87 Fix notmuch.c to use a DIR prefix for directory timestamps, (the idea
88 being that it can then add other non-directory timestamps such as for
89 noting how far back in the past mail has been indexed, and whether it
90 needs to re-tag messages based on a theoretical "auto-tags"
93 Make "notmuch new" notice when a mail directory has gone more than a
94 month without receiving new mail and use that to trigger the printing
95 of the note that the user might want to mark the directory read-only.
97 Also make "notmuch new" optionally able to just mark those month-old
98 directories read-only on its own. (Could conflict with low-volume
99 lists such as announce lists if they are setup to deliver to their own
102 Allow configuration for filename patterns that should be ignored when
107 Provide a sane syntax for date ranges. First, we don't want to require
108 both endpoints to be specified. For example it would be nice to be
109 able to say things like "since:2009-01-1" or "until:2009-01-1" and
110 have the other enpoint be implicit. Second we'de like to support
111 relative specifications of time such as "since:'2 months ago'". To do
112 any of this we're probably going to need to break down an write our
113 own parser for the query string rather than using Xapian's QueryParser
116 Add support for files that are moved or deleted (which obviously need
117 to be handled differently).
119 Actually compile and install a libnotmuch shared library.
121 Fix to use the *last* Message-ID header if multiple such headers are
122 encountered, (I noticed this is one thing that kept me from seeing the
123 same message-ID values as sup).
125 Add support for the user to specify custom headers to be indexed.
127 Add support for configuring "virtual tags" which are a tuple of
128 (tag-name, search-specification). The database is responsible for
129 ensuring that the virtual tag is always consistent.
131 Think about optimizing chunked searches (max-threads > 0) to avoid
132 repeating work. That would be saving state from the previous chunk and
133 reusing it if the next search is the next chunk with the same search
138 Audit everything for dealing with out-of-memory (and drop xutil.c).
142 Achieve 100% test coverage with the test suite.
144 Investigate why the notmuch database is slightly larger than the sup
145 database for the same corpus of email.
151 replace_document should make minimal changes to database file
152 http://trac.xapian.org/ticket/250
154 It looks like it's going to be easy to fix. Here's the file to
157 xapian-core/backends/flint/flint_database.cc
161 // FIXME - in the case where there is overlap between the new
162 // termlist and the old termlist, it would be better to compare the
163 // two lists, and make the minimum set of modifications required.
164 // This would lead to smaller changesets for replication, and
165 // probably be faster overall
167 So I think this might be as easy as just walking over two
168 sorted lists looking for differences.
170 Note that this is in the currently default "flint" backend,
171 but the Xapian folks are probably more interested in fixing
172 the in-development "chert" backend. So the patch to get
173 upstreamed there will probably also fix:
175 xapian-core/backends/chert/chert_database.cc
177 (I'm hoping the fix will be the same---an identical comment
180 Also, if you want to experiment with the chert backend,
181 compile current Xapian source and run notmuch with
182 XAPIAN_PREFER_CHERT=1. I haven't tried that yet, but there are
183 claims that a chert database can be 40% smaller than an
184 equivalent flint database.
188 "tag:foo and tag:bar and -tag:deleted" goes insane
190 This seems to be triggered by a Boolean operator next to a
191 token starting with a non-word character---suddenly all the
192 Boolean operators get treated as literal tokens)