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