aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-04-03Makefile: Add the emacs directory to load-path when compilingDavid Edmondson
Reviewed-by: Carl Worth <cworth@cworth.org>: Presumably, this is to enable proper building in the very near-term future where the emacs implementation consists of multiple files where some will `require' functions from others.
2010-04-02Merge remote branch 'dme/dme-for-cworth'Carl Worth
Conflicts: notmuch.c (Simply the change in documentation indentation level).
2010-04-02Makefile: Only print the "make install" hint after the first build.Carl Worth
It was getting quite annoying to see this big block of text on every little build, (but I didn't want to get rid of it for any new users). This seems to strike the right balance.
2010-04-02notmuch help: Eliminate a gratuitous level of indentation.Carl Worth
I don't really know why we ended up having everything indented by two tabs, (perhaps trying to make it match the man page)? But wihout any containing context to justify that it just looks odd.
2010-04-02notmuch help: Simplify output by omitting arguments for each command.Carl Worth
The output was far too busy otherwise. It's more useful to just show the argument list in the case of "notmuch help <command>" for a specific command. (Credit due to running "git help" and seeing a much more readable list than what was coming out of "notmuch help".)
2010-04-02notmuch: Add a version (0.1 initially) with a new --version option.Carl Worth
We're planning to do actual releases soon, so we need a version number to put into the tar file.
2010-04-02notmuch: Add support for a --help option.Carl Worth
Previously, only "notmuch help" worked while a call to "notmuch --help" would just print a message telling the user to call "notmuch help". Instead of the redirection, just support --help directly now.
2010-04-02notmuch: Add a 'part' subcommandDavid Edmondson
A new 'part' subcommand allows the user to extract a single part from a MIME message. Usage: notmuch part --part=<n> <search terms> The search terms must match only a single message (e.g. id:foo@bar.com). The part number specified refers to the part identifiers output by `notmuch show'. The content of the part is written the stdout with no formatting or identification marks. It is not JSON formatted.
2010-04-02notmuch-show: Add unix and relative dates to the JSON outputDavid Edmondson
Include a 'date_unix' and 'date_relative' field in the JSON output for each message. 'date_relative' can be used by a UI implementation, whereas 'date_unix' is useful when scripting.
2010-04-01Compile a static notmuch binary (but only install the shared version)Carl Worth
The idea here is to allow a new user of notmuch to be able to run notmuch immediately after compiling, (without having to install the shared library first). This also ensures that the test suite tests the locally compiled library, and not whatever installled version of the library the dynamic linker happens to find.
2010-04-01Setup the GMimeStream only when needednstraz@redhat.com
I ran into this while looking at the vim plugin. Vim's system() call redirects output to a file and it was missing many of the part{ lines. If stream_stdout is setup too early, it will overwrite the part start when notmuch is redirected to a file. Reviewed-by Carl Worth <cworth@cworth.org>: GMime is calling fseek before every write to reset the FILE* to the position it believes is correct based on the writes it has seen. Our code was getting incorrect results because our GMime writes were interleaved with non-GMime writes via printf. The bug appears when writing to a file because it's seekable, but not when writing to a pipe which is not.
2010-04-01Makefile: Create include directory when installing headersMichal Sojka
When I wanted to create a debian package from the current master, make install failed because of non-existent include directory. This patch fixes this minor issue.
2010-04-01lib: Switch to a 3-part version number for the library interface.Carl Worth
With a carefully documented description of how to increment the various version components.
2010-04-01Makefiles: Align the columns of output.Carl Worth
Much better.
2010-03-31Makefiles: Make the install rules quiet like the compilation rules.Carl Worth
The output from make is looking better all the time, (though the columns still aren't lined up).
2010-03-31Makefile: Fix to print CFLAGS with "make V=0"Carl Worth
The default "make" would be quite quiet, but still conveniently print the CFLAGS. The explicit "make V=0" was intended to be identical, (only not printing the message about V=1 but was broken in that it left the CFLAGS off). Fix this.
2010-03-31Makefiles: Eliminate shell for loops in rule definitions.Carl Worth
These just made the output look so ugly, and weren't actually making the rule definitions any simpler. Good riddance.
2010-03-31Move installation of library from top-level to lib/Makefile.localCarl Worth
We had a fairly ugly violation of modularity with the top-level Makefile.local isntalling everything, (even when the build commands for the library were down in lib/Makefile.local).
2010-03-31Makefile.config: Avoid pre-expanding the ${prefix} variable.Carl Worth
One of the supproted mechanisms we offer for configuration is manually editing the Makefile.config file after it is generated by the configure script. In this case it would be nice to be able to change prefix only once, so allow that.
2010-03-31Move some variable assignments from Makefile.local to Makefile.configCarl Worth
There's not any special configure logic for determining these variable values, but if we did add some in the future, then these will now be in the right place for that. Additionally, this now makes Makefile.local the single place for the user to look for manually tweaking a variable assignment, (say, for a compiler that can't accept a particular warning argument). With this change, there should rarely be any need for a user to poke into any Makefile.local file.
2010-03-31Move bulk of rules from Makefile to Makefile.local.Carl Worth
Before it was impossible to know whether any particular setting or rule definition was in Makefile or Makefile.local. So we strip the Makefile down to little more than the list of sub-directories and the logic to include all of the sub-directories' Makefile.local fragments. Then, all of the real work can happen inside of Makefile.local.
2010-03-31configure: Fix installation of library to work with alternate --prefixCarl Worth
If an explicit --libdir is passed, then that is used directly. Otherwise libdir is chosen as the value of $PREFIX/lib, (whether or not prefix was passed explicitly or set by default).
2010-03-31configure: Fix typo in help message.Carl Worth
Documentation is installed to PREFIX/man not PREFIX/share.
2010-03-31Add a --libdir option to ./configureIngmar Vanhassel
This allows packagers to specify to which directory libraries should be installed. Signed-off-by: Ingmar Vanhassel <ingmar@exherbo.org>
2010-03-31Fix target dependencies for multiple jobsSaleem Abdulrasool
Signed-off-by: Ingmar Vanhassel <ingmar@exherbo.org>
2010-03-31Build and link against notmuch shared library, install notmuch.hBen Gamari
Signed-off-by: Ingmar Vanhassel <ingmar@exherbo.org>
2010-03-31emacs: Fix the notmuch-search-authors-width variable.Carl Worth
This variable existed previously, but wasn't actually used for anything.
2010-03-31Clarify documentation of notmuch_database_add_message.Carl Worth
For the case of adding a file that already exist, (with the same filename). In this case, nothing will happen to the database, but that wasn't clear before.
2010-03-31TODO: Note that '=' should sometimes count from the end of the buffer.Carl Worth
When trying to restore the current position, if the "current" thread no longer appears in the buffer, then '=' moves to the current line instead. When near the end of the buffer, the "current" line should be counted as the number of lines from the end.
2010-03-31TODO: Add a todo item for adding a message as a blob, rather than a filename.Carl Worth
This was suggested by Srinivasa and is intended to make it easier to integrate notmuch into an mbox-loving mail client.
2010-03-31TODO: Add some new items about improving the test suite.Carl Worth
I just tried (and failed) to write a test for the recent magic inference of phrase searches. That's a feature that makes me *really* uncomfortable to not have an automated test. But I believe the proposed modularization of the test suite should reduce some quoting nightmares, so will hopefully make this easier.
2010-03-31test: Fix phrase-search tests.Carl Worth
With some extra qutotation marks, we are now doing actual phrase searches so these tests pass.
2010-03-31test: Add some negative results for the phrase searches.Carl Worth
These results have all the same terms as the target phrase, but not in the expected order. They are designed to ensure that we actually test phrase searches. And as it turns out, we're not currently quoting the search terms properly, so the phrase-search tests now fail with this commit.
2010-03-31notmuch new implementationSebastian Spaeth
It can not add and remove messages. However, message moves are not detected and we do not modify or honor the Directory entries yet.
2010-03-31database(): Actually return a value on remove_message()Sebastian Spaeth
2010-03-31notmuch: refactor stuff into a Notmuch classSebastian Spaeth
This commit contains many minor and bigger changes, such as the removal of the logging import too.
2010-03-30database.py: also need to import MessageSebastian Spaeth
2010-03-30Ubuntu debian file creation documentationSebastian Spaeth
2010-03-30Debian pkg creation stuffSebastian Spaeth
2010-03-30message.py: Don't use ctypes.c_bool as that does not exist in python 2.5Sebastian Spaeth
2010-03-30message.py: fix indentationJesse Rosenthal
2010-03-30Need to do capitalization changes in dict keys from rev 45d2012fcf51 for all usagesSebastian Spaeth
2010-03-30message.py: small doc changes and unused code removalSebastian Spaeth
2010-03-30Revert some unneeded white space changesSebastian Spaeth
2010-03-30[REV2] adding part, simplifying Message.get_parts(), and fixing json to work with dme's json uiJesse Rosenthal
Sebastian: This replaces the patch it responds to. With this patch, we can now use the cnotmuch with David's json ui. There are still issues, but this allows interaction with emacs. ---
2010-03-28implement sort order for notmuch showJesse Rosenthal
2010-03-25fix wrongly names variable format->out_formatSebastian Spaeth
2010-03-25rename show_messages to print_messages and fix up the arg parsing for notmuch show a bitSebastian Spaeth
2010-03-25Message(): add 'match' result in text output. Fix is_match to use class, not instance, attributes.Sebastian Spaeth
2010-03-25message.yp: add GPL v3 boilerplate and add Jesse as copyright holderSebastian Spaeth