aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-11-08vim: remove add_remove_tags_on_screen()Felipe Contreras
It's not working properly; the current message is jumping around and the tags not really added/removed properly. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2010-11-08vim: cleanup search syntaxFelipe Contreras
It was *sloooooow*. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2010-11-08vim: cleanup search bufferFelipe Contreras
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2010-11-08vim: add archive support from 'show'Felipe Contreras
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2010-11-08Don't use kill-this-buffer to kill notmuch emacs buffersJameson Rollins
kill-this-buffer appears to be a function intended specifically for use in the menu bar, and causes problem killing notmuch buffers when multiple frames have been used. This patch replaces kill-this-buffer with notmuch-kill-this-buffer, which in turn just simply calls (kill-buffer (current-buffer)).
2010-11-06emacs: Fix notmuch-show-pipe-message to use notmuch-command variableMichal Sojka
Previously notmuch command name was hardcoded into this function, which made remote use of pipe command impossible.
2010-11-06NEWS: Update NEWS files for a couple of recent changes.Carl Worth
These two changes since the 0.4 release are noteworthy.
2010-11-06test: Add test for viewing raw message within emacs.Carl Worth
This provides further coverage for the recently added (and recently modified) use of "notmuch show --format=raw" within emacs.
2010-11-06Rename "notmuch cat" to "notmuch show --format=raw"Carl Worth
This is part of an effort to avoid proliferation of excessive top-level notmuch commands. Also, "raw" better captures the functionality here, (as opposed to "cat" which is a fairly oblique reference to a bad Unix abbreviation whose metaphor doesn't work here since "notmuch cat" operates only on a single message and hence cannot "con'cat'enate" anything).
2010-11-06test: Add test for saving an attachment from emacsCarl Worth
This tests the use of "notmuch cat" recently added to the emacs interface.
2010-11-05emacs: Access raw messages via cat subcommandMichal Sojka
This patch modifies the following commands to access the messages via cat subcommand: - view/save attachments ('v', 'w'), - view a raw message ('V') and - pipe a message to a command ('|'). With this patch, it is straightforward to use notmuch emacs interface with a remote database accessed over SSH. To do this, it is sufficient to redefine notmuch-command variable to contain the name of a script containing: ssh user@host notmuch "$@" If the ssh client has enabled connection sharing (ControlMaster option in OpenSSH), the emacs interface is almost as responsive as when notmuch is invoked locally.
2010-11-05Add 'cat' subcommandMichal Sojka
This command outputs a raw message matched by search term to the standard output. It allows MUAs to access the messages for piping, attachment manipulation, etc. by running notmuch cat rather then directly access the file. This will simplify the MUAs when they need to operate on a remote database. Edited-by: Carl Worth <cworth@cworth.org>: Remove trailing whitespace, add missing "test_done" to new test script to avoid "Unexpected exit" error.
2010-11-05Makefile: Support "make check" as alias for "make test"Carl Worth
I'm told that some people have been trained by autotools to expect this target name.
2010-11-05test: Don't mess with user's HOME directoryCarl Worth
This was too rude of a thing to do and could easily introduce problems, (as reported by Rob Browning whose environment required some HOME-specific things for shell startup). Instead, implement more focused changes to ensure that particular file in $HOME don't cause problems. Specifically, we fix known problems with ~/.signature and ~/.mailrc here.
2010-11-05test: Update mail corpus with original mails (with attachments).Carl Worth
The original mails used to pupulate the mail corpus had had their attachments (obnoxiously) scrubbed by the pipermail mail archiver. Since we actually want to test the handling of attachments, this is less than useful. Restore these files from my own collection, (with some Received and similar headers pruned).
2010-11-05test: Clear the "BROKEN" flag on an existing emacs testCarl Worth
I still don't know everything about how I want search order to be customizable, but I do like the current defaults, (namely, performing a new search gives results newest first, but performing a saved search like "tag:inbox" gives results as oldest first). Until we come up with a better plan for people to select what *they* want, (rather than just getting what I want), let's codify the current results in the test suite.
2010-11-05test: Generate a little run_emacs script to help debug any failures.Carl Worth
After any emacs test failure, the tmp.emacs directory will have this run_emacs script in it which the user can use to run emacs within the test suite environment, (pointing at the test suite's notmuch database, using the local notmuch command-line program, and the local notmuch emacs lisp code).
2010-11-05TODO: Add idea for notmuch-bcc and notmuch-cc variables.Carl Worth
To more easily support those folks that want to Bcc with every message.
2010-11-04Print nothing when search result is emptyMichal Sojka
This change affects both text and json formats. Now, text format behaves as before commit 6dcb7592, but json format is changed. Earlier, the empty search returned '[]', now it returns ''. The emacs interface seems not to be affected by this change.
2010-11-04test: Search for non-existent message should return nothingMichal Sojka
My scripts expect that empty search result is actually empty. Since commit 6dcb7592, even empty search prints a newline character and this breaks my scripts. This patch adds a test for this bug. In the test I cannot use test_expect_equal function as $() operator suppresses the final newline and this kind of difference is not detected. test/search | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
2010-11-01debian: Add a file stating the intended symbols to appear in the library0.4Carl Worth
This is almost totally clearn. The (mangled) names of the Xapian exception classes appear here. That's not actually desired, as the notmuch library is never intended to throw any exceptions. But Xapian does not currently provide a mechanism for us to avoid these.
2010-11-01Makefile: Move the -Wl,-as-needed option earlier in the command line.Carl Worth
This option wasn't having the desired effect, and sure enough, the documentation states that it only affects the linking of libraries that appear after this option on the command line. So put it early for the desired effect.
2010-11-01lib: Eliminate some redundant includes of xapian.hCarl Worth
Most files including this already include database-private.h which includes xapian.h already.
2010-11-01lib: Add GCC visibility(hidden) pragmas to private header files.Carl Worth
This prevents any of the private functions from being leaked out through the library interface (at least when compiling with a recent-enough gcc to support the visibility pragma).
2010-11-01lib: Add some missing static qualifiers.Carl Worth
These various functions and data are all used only locally, so should be marked static. Ensuring we get these right will avoid us accidentally leaking unintended symbols through the library interface.
2010-11-01debian: Use the correct maintainer address for the package upload.Carl Worth
Otherwise, Debian tools think this is an NMU.
2010-11-01debian: Declare conformance with Standard-Version 3.9.1.0Carl Worth
I ran through the upgrading-checklist and found nothing needing to be changed for this package.
2010-11-01Makefile: Build library with -Wl,--as-neededCarl Worth
Previously, we were building the final binary with this option, but not the library. The library can benefit from it as well, (as pointed out by Debian's lintian).
2010-11-01manpage: Add escaping for hyphen used as minusCarl Worth
As pointed out by Debian lintian, options with '-' might not be copy/pastable if formatted with an unescaped '-' character.
2010-11-01debian: Add changelog entry for the 0.4 release.Carl Worth
Which is just about to be made.
2010-11-01Increment notmuch version to 0.4.Carl Worth
As reminded in the RELEASING instructions, the correct version is 0.4, not 0.4.0, so update this in the NEWS file as well.
2010-11-01Update library version to 1.2.0Carl Worth
This increment is for the recently-added functions: notmuch_query_get_query_string notmuch_query_get_sort These were recently added to the library interface, but the library version was not incremented at that time, (shame on me).
2010-11-01NEWS: Add notes for the 0.4.0 releaseCarl Worth
Which is about to be pushed out.
2010-10-30configure: Add a check for the -Wl,--as-needed flag.Carl Worth
This fits with our general build philosophy of checking at configure time for desired support, (rather than putting platform-specific conditionals into our Makefiles).
2010-10-30fixupCarl Worth
2010-10-30build: only link to what we really useFelipe Contreras
At least linux has the -Wl,--as-needed option. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2010-10-30configure: Remove a debugging print message.Carl Worth
This was never intended to be committed.
2010-10-30configure: Test for flag to set rpathCarl Worth
This is better than the previous approach which had a hardcoded Linux-specific value in the Makefile.
2010-10-30configure: Test for each compiler warning before enabling it.Carl Worth
This should allow the build to be much more automatically portable to compilers with different sets of warning options.
2010-10-29test: Test emacs notmuch-hello with no saved searches to display.Carl Worth
Haippily, this works just fine, but we might as well test that.
2010-10-29test: Test emacs notmuch-hello when displaying a saved search with 0 results.Carl Worth
This test verifies that the bug fix in the previous commit is working.
2010-10-29Fix problem with notmuch-hello-nice-numberDirk Hohndel
Without this little patch notmuch fails if asked to display a saved search that has zero results Edited-by: David Edmondson <dme@dme.org>: With code that is a little more "emacsy".
2010-10-29emacs: Re-work the implementation of highlighting in notmuch-search-mode.David Edmondson
Re-write `notmuch-search-color-line', with the following improvements: - create overlays only if they will be needed, - merge the properties specified for a tag on top of any matching a previous tag.
2010-10-29debian: Add emacs autoloads for all top-level notmuch functions.Carl Worth
With this, users will be able to simply "apt-get install emacs" and then "emacs -f notmuch" without having to edit ~/.emacs to add a ("require 'notmuch)".
2010-10-29emacs: Fix the autoload commentsCarl Worth
Remove them from non-top-level entry points, (such as the functions to set notmuch modes and the deprecated notmuch-folder function). And add one to the notmuch-hello function. Also, add missing documentation string to notmuch-hello.
2010-10-29configure: Set XAPIAN_CONFIG to only "xapian-config" by default.Carl Worth
Previously, we preferred a value of "xapian-config-1.1" first. This was convenient for compiling against Xapian 1.1 while Xapian 1.2 was unreleased. But now that Xapian 1.2 is realease, and since it ships a xapian-config, the xapian-config-1.1 value can mask the newer library. Instead of trying to track the latest xapian-config-1.x in our configure script let's simply expect the user to set XAPIAN_CONFIG=xapian-config-1.x in order to compile against an unreleased Xapian.
2010-10-29configure: optimize uname finding a bitFelipe Contreras
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2010-10-29Makefile: Fix notmuch binary to directly link against Xapian and GMime.Carl Worth
Without this, trying to link with the gold linker would fail, (which meant that notmuch could not be compiled out of the box on recent Fedora, nor even on Debian when the binutils-gold package is installed).
2010-10-29Don't involve the shell in notmuch searchesDavid Benjamin
The shell isn't needed to interpret any of the arguments, so don't bother using it at all. Signed-off-by: David Benjamin <davidben@mit.edu>
2010-10-29notmuch-setup.c: Initialize getline(3) response_size to 0Mike Kelly
This appears to be necessary on FreeBSD. If this isn't done, we get a nasty segfault. See: id:20101013094340.41580a2f@pioto.org