aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-01-26new: Print progress estimates only when we have sufficient informationMichal Sojka
Without this patch, it might happen that the remaining time or processing rate were calculated just after start where nothing was processed yet. This resulted into division by a very small number (or zero) and the printed information was of little value. Instead of printing nonsenses we print only that the operation is in progress. The estimates will be printed later, after there is enough data.
2011-01-26Makefile: Quote variables used as filenames in shell commandsCarl Worth
This allows support for filenames with spaces in them.
2011-01-26configure: Drop global setting of IFS (without space in it).Michal Sojka
This was originally intended to help support filenames with spaces in them, but this actually breaks things when someone sets a command with a space in it, (such as CC="ccache cc"). Instead, we now only set a custom IFS when acting on the newline-separated list of files from /sbin/ldconfig.
2011-01-26emacs: View the output of pipe command when it failsMichal Sojka
Previously, the user didn't know whether the pipe command succeeded or not. It was only possible to find it out by manually inspecting the work done (or not done) by the command or by manually switching to *notmuch-pipe* buffer and determine it from command output. For this the user had to first find the text corresponding to the last run of pipe command as the buffer accumulated the output from all pipe commands. This patch changes the following. The *notmuch-pipe* buffer is erased before every pipe command so it contains only the output from the last command. Additionally, when the command failed, the *notmuch-pipe* buffer is shown and an error message is displayed. with the output of pipe command.
2011-01-26test: Make it easier to resolve conflicts when adding new testsMichal Sojka
Currently, there are two places in the test framework that contain very long list on a single line. Whenever a test is added (or changed) in several branches and these branches are merged, it results in conflict which is hard to resolve because one has to go through the whole long line to find where the conflict is. This patch splits these long lists to several lines so that the conflicts are easier to resolve.
2011-01-26Fix installation of zsh completionMichal Sojka
2011-01-26configure: add options to disable emacs/zsh/bash and choose install dir.Cédric Cabessa
add --bashcompletiondir and --zshcompletiondir (like --emacslispdir) to choose installation dir for bash/zsh completion files Make some features optional: --without-emacs / --with-emacs=no do not install lisp file --without-bash-completion / --with-bash-completion=no do not install bash files --without-zsh-completion / --with-zsh-completion=no do not install zsh files By default, everything is enabled. You can reenable something with --with-feature=yes
2011-01-26new: Enhance progress reportingMichal Sojka
notmuch new reports progress only during the "first" phase when the files on disk are traversed and indexed. After this phase, other operations like rename detection and maildir flags synchronization are performed, but the user is not informed about them. Since these operations can take significant time, we want to inform the user about them. This patch enhances the progress reporting facility that was already present. The timer that triggers reporting is not stopped after the first phase but continues to run until all operations are finished. The rename detection and maildir flag synchronization are enhanced to report their progress.
2011-01-26new: Add all initial tags at onceMichal Sojka
If there are several tags applied to the new messages, it is beneficial to store them to the database at one, because it saves some time, especially when the notmuch new is run for the first time. This patch decreased the time for initial import from 1h 35m to 1h 14m.
2011-01-26Do not defer maildir flag synchronization for new messagesAustin Clements
This is a simplified version of a patch originally by Michal Sojka <sojkam1@fel.cvut.cz> which is designed to have the same performance benefits. Michal said the following: When notmuch new is run for the first time, it is not necessary to defer maildir flags synchronization to later because we already know that no files will be removed. Performing the maildinr flag synchronization immediately after the message is added to the database has the advantage that the message is likely hot in the disk cache so the synchronization is faster. Additionally, we also save one database query for each message, which must be performed when the operation is deferred. Without this patch, the first notmuch new of 200k messages (3 GB) took 1h and 46m out of which 20m was maildir flags synchronization. With this patch, the whole operation took only 1h and 36m. Unlike Michal's patch, this version does the deferral for any new message, rather than doing it only on the first run of "notmuch new".
2011-01-26vim: Get user email address from notmuch config file.Peter John Hartman
Here's a bitty patch to the vim plugin; it now calculates the primary email of the user based on a call to notmuch config. There's still a lot of work that needs to get done on notmuch.vim, e.g., the ability to have multiple emails/accounts.
2011-01-26lib: Save and restore term position in message while indexing.Carl Worth
This fixes the recently addead search-position-overlap bug as demonstrated in the test of the same name.
2011-01-26Add test demonstrating a position overlap bug.Carl Worth
Currently, whenever we call index_terms multiple times for a single field, the term generator is being reset to position 0 each time. This means that with text such as: To: a@b.c, x@y.z one can get a bogus match by searching for: To: a@y.c Thanks to Mark Anderson for reporting the bug, (and providing a nice, minimal test case that inspired what is used here).
2011-01-26notmuch search: Clean up some memory leaks during search loop.Carl Worth
With talloc, we were already freeing all memory by the time we exited the loop, but that didn't help with excess use of memory inside the loop, (which was mostly from tallocing some objects with the incorrect parent). Thanks to Andrew Tridgell for sitting next to me and teaching me to use talloc_report_full to find these leaks.
2011-01-26Migrate to goconfig pkgSebastien Binet
2011-01-26bindings/go: Add a todo fileSebastien Binet
2011-01-26A minor, cosmetic changeSebastien Binet
Just trying to keep the line lengths in check.
2011-01-26Initial import of Go bindings for notmuchSebastien Binet
2011-01-26TODO: Note that folder: has now been implemented.Carl Worth
This feature has been mentioned in the TODO file (more than once) for quite some time now.
2011-01-25ruby: Add wrapper for message_get_filenamesAli Polatel
2011-01-25ruby: Add wrappers for maildir sync. interfaceAli Polatel
New wrappers: notmuch_message_maildir_flags_to_tags(): MESSAGE.maildir_flags_to_tags notmuch_message_tags_to_maildir_flags(): MESSAGE.tags_to_maildir_flags
2011-01-25ruby: Add wrappers for query_get_s{ort,tring}Ali Polatel
New wrappers: notmuch_query_get_sort(): QUERY.sort notmuch_query_get_query_string(): QUERY.to_s
2011-01-15Add documentation for the recently added folder-based searching.Carl Worth
Augmenting both the builtin help as well as the manual page.
2011-01-15Add support for folder-based searching.Carl Worth
A new "folder:" prefix in the query string can now be used to match the directories in which mail files are stored. The addition of this feature causes the recently added search-by-folder tests to now pass.
2011-01-15test: Add new tests for folder-based searching.Carl Worth
This is a new feature which is not implemente yet, so these tests mostly fail currently. A subsequent commit will add the feature and cause these tests to start passing. These tests verify that we can search for containing folders of mail files by word or by phrase and that the search terms are updated correctly when directories are renamed.
2011-01-15Fix misspelling in a comment.Carl Worth
Just a simple change I noticed in passing.
2011-01-15test/basic: Ignore new files ending in ~Carl Worth
We don't need to complain that temporary editor backups are not added to the list of tests to be run.
2011-01-15Tighten up a memory allocation.Carl Worth
Using the local talloc context ensures that the memory we are using here will be freed shortly, (rather than hanging on for a long time with the notmuch database object).
2011-01-15Correct some minor typos in a commentCarl Worth
Nothing too important here. Just some misspellings I noticed while reading nearby code.
2011-01-13python: Update metainformation to point to new URL and version numberSebastian Spaeth
Convert the meta information to point to the notmuchmail.org repository, rather than the old cnotmuch location. I will delete the "cnotmuch" package from http://pypi.python.org/pypi/cnotmuch and create a new "notmuch" package there that contains the current versions. Also bump the version number to 0.4. I will need to upgrade the API first before I can release the 0.5 of the bindings, there are still some methods missing. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-12-07Optimize thread search using matched docid sets.Austin Clements
This reduces thread search's 1+2t Xapian queries (where t is the number of matched threads) to 1+t queries and constructs exactly one notmuch_message_t for each message instead of 2 to 3. notmuch_query_search_threads eagerly fetches the docids of all messages matching the user query instead of lazily constructing message objects and fetching thread ID's from term lists. _notmuch_thread_create takes a seed docid and the set of all matched docids and uses a single Xapian query to expand this docid to its containing thread, using the matched docid set to determine which messages in the thread match the user query instead of using a second Xapian query. This reduces the amount of time required to load my inbox from 4.523 seconds to 3.025 seconds (1.5X faster).
2010-12-07Update test suite for 7 tests that were recently fixed.Carl Worth
These tests had been broken, but were fixed by the preceding commit, so update the test suite to print PASS rather than FIXED for these.
2010-12-07notmuch search: Fix to display authors in date order.Carl Worth
Previously, the authors of the thread were displayed in reverse-chronological order, which was fairly confusing.
2010-12-07lib: Set thread subject at the same time as setting thread->{oldest,newest}Carl Worth
We really want to change the thread subject at the same time we set the date, (if the sort order indicates this is necessary). The previous code for setting the thread subject was sensitive on the query sort when adding matching messages. An independent bug fix is about to change that query sort order, so we remove the dependency on it here.
2010-12-07Revert "test: Break on test script (or other) error"Carl Worth
This reverts commit f22a7ec1e28d1264cf9d67d78796b8ab22e09a35. Interrupting the test suite due to an actual bug in a test script would be just fine, but interrupting the run of the entire test suite at the first test failure is unacceptable.
2010-12-07test: Leave tmp.<testname> for broken testsCarl Worth
Previously, this directory was only preserved for failing tests. But it's important to be able to easily debug known-broken tests, so preserve the actual vs. expected output for those as well.
2010-12-07Make author order tests more strict.Austin Clements
Use varying dates in the test messages to test the order authors are listed in. Add tests with repeated author names and unusual date ordering. Most of these are broken at the moment, but will be fixed shortly. Edited-by: Carl Worth <cworth@cworth.org>: Also update the expected results for existing emacs tests that currently codify the incorrect author ordering, (and similarly note them as broken in the current test suite).
2010-12-07Fix handling of broken tests.Austin Clements
Make sure to close the subtest for test_expect_equal_failure, just like in test_expect_equal.
2010-12-07emacs: Remove over-eager regular expressions from notmuch-wash-tidy-citations.David Edmondson
The removed expressions, which were used to ensure that citations were both preceded and followed by a blank line, were poorly implemented and caused a regexp stack overflow on messages more than a few thousand lines long.
2010-12-07emacs: Improve the display of truncated authors.David Edmondson
Incremental search does not match strings that span a visible/invisible boundary. This results in failure to correctly isearch for authors in `notmuch-search' mode if the name of the author is split between the visible and invisible components of the authors string. To avoid this, attempt to truncate the visible component of the authors string on a boundary between authors, such that the entirety of an author's name is either visible or invisible.
2010-12-07emacs: Use truenames for Fcc paths.David Edmondson
Appease the test suite by using the true name for the Fcc directory path, otherwise a value for `notmuch-database-path' which includes symbolic links causes test suite failures.
2010-12-07test: Ignore files created during test failures.David Edmondson
When a test fails, a tmp.<testname> file is left behind. These files are useful for the person debugging the test failure, but are never anything we want to commit. Edited-by: Carl Worth <cworth@cworth.org>: Changed from tmp.emacs to tmp.* and added explanation in the commit message.
2010-12-05notmuch new: Scan directory whenever fs mtime is not equal to db mtimeCarl Worth
Previously, we would only scan a directory if the filesystem modification time was strictly newer than the database modification time for the directory. This would cause a problem for systems with an unstable clock, (if a new mail was added to the filesystem, then the system clock rolled backward, "notmuch new" would not find the message until the clock caught up and the directory was modified again). Now, we always scan the directory if the modification time of the directory is not exactly the same between the filesystem and the database. This avoids the problem described above even with an unstable system clock.
2010-11-23Fix to index the "Re" term present in any subject.Carl Worth
This was a misfeature where notmuch had extra code that just threw away legitimate information. It was never indexing an initial "Re" term in a subject. But some users have legitimately wanted to search for this term. The original code was written this way merely for strict compatiblity with the indexing performed by sup, but we're not taking advantage of that now anyway.
2010-11-23notmuch search: Fix missing final newline in "notmuch search --output=tags"Carl Worth
As mentioned in the recent test commits, this also fixes the missing '[' and ']' characters in the --format=json variant of "notmuch search --output=tags" as well.
2010-11-23test: Add --format=json testing to the "notmuch search --format" tests.Carl Worth
This testing *does* capture the bug of missing '[' and ']' characters int "notmuch search --output=tags" case. This is another manifestation of the same bug causing the missing final newline (as mentioned in the previous commit).
2010-11-23test: Add simple tests for "notmuch search --output=<>"Carl Worth
This code simply wasn't being exercised by the test suite before, so this will be useful. Meanwhile, there's currently a bug in "notmuch search --output=tags" in that it doesn't print a final newline. But the current test suite isn't able to catch this bug since the $() construct of the shell doesn't preserve the distinction of whether the final newline is present or not.
2010-11-23TODO: Note missing keybindings for next/previous thread in emacs client.Carl Worth
Seems a fairly obvious shortcoming to have survived this long.
2010-11-16compatibility with emacs22James Vasile
Emacs22 lacks apply-partially and mouse-event-p, so define them if emacs version is less than 23. With this change, I was able to begin using notmuch in emacs22. The definitions of apply-partially and mouse-event-p are copied from the emacs 23 distribution, (which is distributed under the GPLv3+ just as notmuch).
2010-11-16TODO: Add several items recently mentioned on the mailing list.Carl Worth
Getting things listed here means that I can safely archive away those messages without worrying that the ideas will get lost.