]> git.notmuchmail.org Git - notmuch/blob - TODO
Support for printing file paths in new command
[notmuch] / TODO
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
4
5 2. Allow an easy way to get tags from directory names (if the user has them)
6
7 3. Allow an easy way to remove excess tags, (date-based search)
8
9 4. Make emacs fast for big search results (see "lazy searching" below)
10
11 5. Fix Xapian defect #250 so tagging is fast.
12
13 Emacs interface (notmuch.el)
14 ----------------------------
15 Add a command to archive all threads in a search view.
16
17 Lazy searching: call "notmuch search" with --first and --max to fill
18 just a screenful of results, and then fill in more as ther user pages
19 through the buffer.
20
21 Add a '|' binding from the search view.
22
23 Add a binding to run a search from notmuch-show-mode.
24
25 Portability
26 -----------
27 Fix configure script to test each compiler warning we want to use.
28
29 Implement strndup locally (or call talloc_strndup instead).
30
31 Implement getline locally, (look at gnulib).
32
33 Completion
34 ----------
35 Fix bash completion to complete multiple search options (both --first
36 and *then* --max-threads), and also complete value for --sort=
37 (oldest-first or newest-first).
38
39 notmuch command-line tool
40 -------------------------
41 Teach "notmuch search" to return many different kinds of results. Some
42 ideas:
43
44         notmuch search --for threads    # Default if no --for is given
45         notmuch search --for messages
46         notmuch search --for tags
47         notmuch search --for addresses
48         notmuch search --for terms
49
50 Add a "--format" option to "notmuch search", (something printf-like
51 for selecting what gets printed).
52
53 Add a "--count-only" (or so?) option to "notmuch search" for returning
54 the count of search results.
55
56 Give "notmuch restore" some progress indicator. Until we get the
57 Xapian bugs fixed that are making this operation slow, we really need
58 to let the user know that things are still moving.
59
60 Fix notmuch.c to call add_timestamp/get_timestamp with path names
61 relative to the database path. (Otherwise, moving the database to a
62 new directory will result in notmuch creating new timestamp documents
63 and leaving stale ones behind.)
64
65 Ensure that "notmuch new" is sane if its first, giant indexing session
66 gets interrupted, (that is, ensure that any results indexed so far are
67 flushed).
68
69 Fix notmuch.c to use a DIR prefix for directory timestamps, (the idea
70 being that it can then add other non-directory timestamps such as for
71 noting how far back in the past mail has been indexed, and whether it
72 needs to re-tag messages based on a theoretical "auto-tags"
73 configuration file).
74
75 Make "notmuch new" notice when a mail directory has gone more than a
76 month without receiving new mail and use that to trigger the printing
77 of the note that the user might want to mark the directory read-only.
78
79 Also make "notmuch new" optionally able to just mark those month-old
80 directories read-only on its own. (Could conflict with low-volume
81 lists such as announce lists if they are setup to deliver to their own
82 maildirs.)
83
84 notmuch library
85 ---------------
86 Add support for files that are moved or deleted (which obviously need
87 to be handled differently).
88
89 Actually compile and install a libnotmuch shared library.
90
91 Fix to use the *last* Message-ID header if multiple such headers are
92 encountered, (I noticed this is one thing that kept me from seeing the
93 same message-ID values as sup).
94
95 Add support for the user to specify custom headers to be indexed.
96
97 Add support for automatic tagging of new messages based on particular
98 search criteria, (likely using an InMemory database for the new
99 messages).
100
101 General
102 -------
103 Audit everything for dealing with out-of-memory (and drop xutil.c).
104
105 Write a test suite.
106
107 Achieve 100% test coverage with the test suite.
108
109 Investigate why the notmuch database is slightly larger than the sup
110 database for the same corpus of email.