aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-03-16use logging.debug for debug output. Implement notmuch search-tagsSebastian Spaeth
--HG-- extra : transplant_source : %BAn%2B%93B%1EkU8%A6-I%5D%E1%E4%2B%D6E%0C%F5
2010-03-16Fixing the crashes that I was seeingSebastian Spaeth
--HG-- extra : transplant_source : %3E%B1%BB%DF%3C%22%A6%CC%90Z%E8v%95%962%DD%B2%A1%11%CC
2010-03-16implement Query() and search_messages()Sebastian Spaeth
However, this is still brittle and often segfaults for unknown reasons --HG-- extra : transplant_source : %D1%FB%2B%FC%EA%E9%EB%3E%D2%13%DFV.o%D6%A6%CE%81%00%8C
2010-03-16remove useless tags structSebastian Spaeth
--HG-- extra : transplant_source : %EF%CD%D8K%E5%E1F%95%1E%F9%F3%88%E7%B0%600%21Wwp
2010-03-16Query() stubSebastian Spaeth
--HG-- extra : transplant_source : %1E%14%7B%E7J%DD%96O%C7%E6%B5%FB%D8V%7B%0F%7C%25ot
2010-03-16some more stubsSebastian Spaeth
--HG-- extra : transplant_source : %2A%C5%3C%C0u%B8%0DLx%3Eg%A2%06%F6%1E%B8%99C7%B3
2010-03-16nonfunctional changes in notmuch stubSebastian Spaeth
--HG-- extra : transplant_source : %F2%28%18m%91%F5%DA%08%17%AC/%9E%C2%AE%95%91%92%C4%A3%7F
2010-03-16add notmuch stub that will allow me to run the notmuch testsuite over the python bindings.Sebastian Spaeth
--HG-- extra : transplant_source : %E4%EF%29%A3%9BA%C57%7C%EC%B0%7BF%FB%00%F0%EB%97%92%E3
2010-03-16Find the notmuch shared lib rather than hardode a locationSebastian Spaeth
--HG-- extra : transplant_source : %DEOdF%80%83%3A%3D%98%5C%AE%81%FE%BA%EF%1A%16%82u%E8
2010-03-16Implement Message(), Database.find_message(), Database.create()Sebastian Spaeth
Message() basically has get_message_id get_filename get_tags Plus various bullet proofing and bug fixing. --HG-- extra : transplant_source : O%3B1%EB%E0%D4pYrEY_%E3%0E%BA%C23%11a%B0
2010-03-15improve README example session to reflect realitySebastian Spaeth
--HG-- extra : transplant_source : %15P%B8E%1A%CE%0D%DE%CEB%E0/%E04%2B%3F%255%A1%F9
2010-03-15Tags: clarify documentation: we can only iterate once over Tags, and free underlying tags once we iterated through.Sebastian Spaeth
--HG-- extra : transplant_source : %0BI%C9%899k%80%8C4j%07%85%038%86%04%2A%FE%A6%A3
2010-03-15initial revision. See README for what worksSebastian Spaeth
--HG-- extra : transplant_source : %FBQ%B3%C5%0E%85%E8%0B%154%F5t%19%2A%C6p%A5%1Dd%F1
2010-03-16COPYING: add GPL v3+Sebastian Spaeth
2010-03-11notmuch-show: add tags to json outputSebastian Spaeth
The previous json patches forgot to add the notmuch tags to the json output. This is inconsistent to the text output so here they are. We just output a 'tags' field that sends notmuch tags as a json array. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-03-10emacs: Fix search refresh when on the last line of a search buffer.Carl Worth
We currently allow the cursor to be positioned on the "End of search results" line after the last thread in a search buffer. When refreshing on this line, there's no thread ID to be used as the target. Previously, a refresh from this case would result in a nil thread target, but we were also using nil to indicate that the target thread had been found. This caused the position to be lost during refresh, (the cursor would move from the last line in the buffer to the first). We fix this by using a magic string of "found" rather than nil to clearly indicate whether the target thread has actually been found.
2010-03-10emacs: Adjust search refresh to use a target line not a target position.Carl Worth
It doesn't make sense to move the cursor to some random point in the middle of a line. We always want the refresh to leave the cursor at the beginning of some line instead.
2010-03-10Makefile: Fix Makefiles to depend on all child Makefile fragments.Carl Worth
We were previously maintaining two lists of the child Makefile fragments---one for the includes and another for the dependencies. So, of course, they drifted and the dependency list wasn't up to date. We fix this by adding a single subdirs variable, and then using GNU Makefile substitution to generate both the include and the dependency lists. Some side effect of this change caused the '=' assignment of the dir variable to not work anymore. I'm not sure why that is, but using ':=' makes sense here and fixes the problem.
2010-03-10Makefile: Use 'emacs --quick' for a less noisy build of "make install-emacs".Carl Worth
I don't really notice if it goes any quicker, but it's sure nice to have less spew now.
2010-03-10Makefile: Add a message after "make install-emacs"Carl Worth
More help to guide the new user here. Tell the user how to actually invoke the emacs client now that it's installed.
2010-03-10Makefile: Conditionalize the "make install" message.Carl Worth
This is the same approach as with the 'all' target previously.
2010-03-10Makefile: Simplify the conditional message of the all target.Carl Worth
We wamt a simple "make" to call the 'all' target and then print a message when done, but we don't want "make install" which depends on that same 'all' target to print the message. We previously did this with a separate 'all-without-message' target, which was inelegant because it caused all users of the target to carefully depend on 'all-without-message' rather than 'all'. Instead, we now use a single 'all' target but with a Makefile conditional that examines the MAKECMDGOALS variable to determine whether to print the message.
2010-03-10Makefile: Add message to make install listing the other install targets.Carl Worth
Otherwise, it's hard for the user to know that things like install-emacs, install-bash, and install-zsh even exist.
2010-03-09Makefile: Add a meesage after "make" telling the user to run "make install"Carl Worth
As one command completes, it's kind of the tool to indicate which command the user should execute next.
2010-03-09Makefile: Rename all_deps to global_depsCarl Worth
The "all" inside this variable name was easy to confuse with the separate "all" target. This variable specifies dependencies that apply to every target, so use "global" instead.
2010-03-09Add is:<tag> as a synonym for tag:<tag> in search terms.Carl Worth
I like the readability of this, it provides compatibility with people trained in this syntax by sup, and it even saves one character.
2010-03-09emacs: Move emacs UI (currently just one file) to subdirectory.David Bremner
Add emacs/Makefile.local and emacs/Makefile. Move emacs targets into emacs/Makefile.local, but leave the byte compilation rule in the top level Makefile.
2010-03-09INSTALL: Include Fedora command for installing dependencies of notmuch.Carl Worth
We already had this command in the error message from the configure script, so we should include it here as well.
2010-03-09INSTALL: Add a pointer to ./configure --helpCarl Worth
We have some good documentation in ./configure --help, so we should direct users to it.
2010-03-09lib: Silence a compiler warning.Carl Worth
The original code was harmless, but apparently some compilers aren't able to think deep enough to catch that.
2010-03-09emacs: Fix refresh of search results to leave cursor on current thread.Carl Worth
This has been broken since the addition of support for streaming search results to the emacs interface. With the old apparoach it was easy to simply wait for all search results to land in the buffer and then search for the desired line. With streaming results, we have to save the target off to the side and allow the process filter and sentinel functions to correctly respond when the target thread appears.
2010-03-09Fix a few documentation typos in notmuch.hFernando Carrijo
Fix a few documentation typos in notmuch.h Signed-off-by: Fernando Carrijo <fcarrijo@yahoo.com.br>
2010-03-09Update documentation of notmuch_query_createFernando Carrijo
Commit cd467caf renamed notmuch_query_search to notmuch_query_search_messages. Commit 1ba3d46f created notmuch_query_search_threads. We better keep the docs of notmuch_query_create consistent with those changes. Signed-off-by: Fernando Carrijo <fcarrijo@yahoo.com.br> Edited-by: Carl Worth to explicitly list the full name of each function being referenced.
2010-03-09notmuch show: Don't show empty headers.Carl Worth
This is a fairly old regression. There has always been code to avoid printing empty headers (such as Cc or Bcc with no values), but it has been broken since notmuch_message_get_header was changed to return an empty string rather than a NULL pointer for these fields.
2010-03-09TODO: Add proposal for a saved-search interface.Carl Worth
Adding this to our TODO list so that it doesn't get forgotten.
2010-03-09TODO: Remove many items that have been completed recently.Carl Worth
There's been a lot of good work done, and we've been doing a generally poor job of noticing when some of the tasks we've completed were already on our TODO list. So here's a careful scan, removing all items I could find that have already been done.
2010-03-09emacs: Fix documentation of notmuch-search-remove-tag.Carl Worth
The behavior was changed in commit 4aff2ca55bfe285ced36e9fe02c907d8b4120672 to affect all messages in the thread (and not only those matching the current search) but the documentation was not updated (until now).
2010-03-09lib: Document what move_to_next does at the end of the list.Carl Worth
Explicitly mention that there's an invalid position after the last item in the list.
2010-03-09lib: Rename iterator functions to prepare for reverse iteration.Carl Worth
We rename 'has_more' to 'valid' so that it can function whether iterating in a forward or reverse direction. We also rename 'advance' to 'move_to_next' to setup parallel naming with the proposed functions 'move_to_first', 'move_to_last', and 'move_to_previous'.
2010-03-09emacs: Fix backspace to not scroll more than the previous messageCarl Worth
The bug was occuring due to counting invisible lines, but then scrolling past them since they are invisible.
2010-03-09emacs: Unbreak notmuch-show-rewind (the function to which Backspace is bound)Carl Worth
Commit 095a02211e696434e5b41a85ab516b3a639f9a9b broke the backspace key by trying to execute nil as a function, (which obviously won't work), when it was intended as a return value. Fix this now, (and pine for a test suite that exercises the emacs user-interface of notmuch).
2010-02-26emacs: Make 'n' and 'p' navigate only open messages.Carl Worth
And add new 'N' and 'P' keybindings for navigating through messages that are open or closed.
2010-02-26emacs: Don't open unread messages by default.Carl Worth
When searching for an individual message, (by message id, say), it's really annoying to have the entire thread open just because the thread was archived without ever having been read. This means that the "unread" tag is a lot less special, and it really just exists as a mild cue for the user.
2010-02-25control: Update package description to follow upstream README.Carl Worth
Justin B Rye pointed out (in Debian bug #566282) that a user with mail in mbox format can spend a lot of time investigating notmuch before realizing that mbox is not supported. Head that off with a more detailed mention in the package description.
2010-02-25README: Mention that notmuch only supports maildir or mh format.Carl Worth
Justin B Rye pointed out (in Debian bug #566282) that a user with mail in mbox format can spend a lot of time investigating notmuch before realizing that mbox is not supported. Head that off with a more detailed mention in the README blurb.
2010-02-24emacs: Avoid removing the unread tag due to internal navigationCarl Worth
Sometimes the internals of the implementation navigate among messages, (as opposed to the user explicitly requesting the next message to be shown). In these cases we don't want to remove the unread tag from the message navigated to. This fixes a bug where invocation of notmuch-show-next-unread-message would clear the unread tag from all messages in a thread.
2010-02-24Simplify "unread" tag handling in emacs UI.Jameson Rollins
This patch is intended to greatly simplify the handling of the "unread" tag in the emacs UI. This patch adds a new function 'notmuch-show-mark-read', that removes the "unread" tag in notmuch-show-mode. This function is then executed as a notmuch-show-hook, and by notmuch-show-next-message. All of the functions that explicitly marked messages as unread are removed or renamed. The idea here is that the user should never have to worry about manipulating the "unread" tag. The tag should persist until the user actually views a message, at which point it should be automatically removed. This patch simplifies the notmuch.el quite a bit, removing a lot of somewhat redundant functions, and reducing clutter in the name and key-mapping space.
2010-02-23TODO: We should fix the --format=json option to not imply --entire-thread.Carl Worth
What we print and how we print it are orthogonal options, so --format shouldn't change what messages are printed.
2010-02-23notmuch search: Use "thread" rather than "id" when formatting with JSONCarl Worth
The text output uses thread:<foo>, (which is a syntax directly supported by "notmuch show"), so make the json output be "thread", "<foo>" rather than "id", "<foo>". This should help avoid confusion of thread IDs with message IDs, (which do use the "id" prefix in searches).
2010-02-23json: Add copy of MIT license text from cJSONCarl Worth
When we incorporate external code, we should include its license, (particularly when one of the terms of the license is to include it in copies).