]> git.notmuchmail.org Git - notmuch/log
notmuch
14 years agoIncrement version to 0.1.1
Carl Worth [Mon, 5 Apr 2010 21:25:06 +0000 (14:25 -0700)]
Increment version to 0.1.1

After publishing the first notmuch release (0.1) to
http://notmuchmail.org/releases .

14 years agoMakefile: Add a dist target.
Carl Worth [Mon, 5 Apr 2010 21:22:00 +0000 (14:22 -0700)]
Makefile: Add a dist target.

To create a versioned tar file for release.

14 years agoMakfiles: Make the top-level targets PHONY
Carl Worth [Mon, 5 Apr 2010 19:59:06 +0000 (12:59 -0700)]
Makfiles: Make the top-level targets PHONY

Just to avoid any clash with files of the same names.

14 years agonotmuch-query.el: new file to support access to the notmuch database.
David Bremner [Mon, 5 Apr 2010 16:46:16 +0000 (13:46 -0300)]
notmuch-query.el: new file to support access to the notmuch database.

Initially this file provides one main function
notmuch-query-get-threads, which takes a set of search terms, and
returns a parsed set of matching threads as a lisp data structure.

A set of notmuch-query-map-* functions are provided to help map
functions over the data structure.

The function notmuch-query-get-message-ids uses this machinery to get
the set of message-ids matching a query.

Edited-by: Carl Worth <cworth@cworth.org>: Change comment syntax,
(";;" rather than ";" to make emacs-lisp mode happy), and eliminate
some excess whitespace, as suggested by David Edmonson.

14 years agonotmuch: Correctly terminate text/* parts in JSON output
David Edmondson [Mon, 5 Apr 2010 09:33:19 +0000 (10:33 +0100)]
notmuch: Correctly terminate text/* parts in JSON output

Text parts returned by `g_mime_stream_mem_get_byte_array()' are not
NULL terminated strings - add `json_quote_chararray()' to handle them
correctly.

14 years agogit: Ignore `notmuch-shared'
David Edmondson [Thu, 1 Apr 2010 17:36:21 +0000 (18:36 +0100)]
git: Ignore `notmuch-shared'

14 years agoemacs: Move notmuch-show functionality to notmuch-show.el
David Edmondson [Thu, 1 Apr 2010 17:36:21 +0000 (18:36 +0100)]
emacs: Move notmuch-show functionality to notmuch-show.el

To ease the transition to a JSON based implementation of
`notmuch-show', move the current implementation into a separate file.

Create `notmuch-lib.el' to hold common variables.

14 years agofind_library does not read LD_LIBRARY_PATH, but CDLL does.
Cedric Cabessa [Mon, 5 Apr 2010 01:03:51 +0000 (03:03 +0200)]
find_library does not read LD_LIBRARY_PATH, but CDLL does.

14 years agoTODO: Add notes on removing "notmuch part" and "notmuch search-tags".
Carl Worth [Sat, 3 Apr 2010 19:42:03 +0000 (12:42 -0700)]
TODO: Add notes on removing "notmuch part" and "notmuch search-tags".

Both of these ideas were recently discussed on the mailing list.

14 years agoemacs: Fix "free variable" warning for notmuch-folder-show-empty.
Carl Worth [Sat, 3 Apr 2010 19:22:14 +0000 (12:22 -0700)]
emacs: Fix "free variable" warning for notmuch-folder-show-empty.

Emacs really wants us to defvar each variable before assigning to it,
(which gives us a place to document the variable as well).

14 years agoemacs/notmuch.el: Improve tag highlighting in search mode
David Edmondson [Tue, 23 Mar 2010 07:04:34 +0000 (07:04 +0000)]
emacs/notmuch.el: Improve tag highlighting in search mode

Assume that tags never include an opening bracket, and hence improve
the regular expression used to highlight them. This avoids false
matches where the 'from' address of a thread participant includes an
opening bracket.

14 years agoMakefile.local: Automatically use makefile mode
David Edmondson [Sun, 21 Mar 2010 09:54:08 +0000 (09:54 +0000)]
Makefile.local: Automatically use makefile mode

We add a magic line to the beginning of each Makefile.local file to
help the editor know that it should use makefile mode for editing the
file, (even though the filename isn't exactly "Makefile").

Edited-by: Carl Worth <cworth@cworth.org>: Expand treatment from
emacs/Makefile.local to each instance of Makefile.local.

14 years agoMakefile: Add the emacs directory to load-path when compiling
David Edmondson [Thu, 1 Apr 2010 10:38:30 +0000 (11:38 +0100)]
Makefile: Add the emacs directory to load-path when compiling

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.

14 years agoMerge remote branch 'dme/dme-for-cworth'
Carl Worth [Fri, 2 Apr 2010 22:40:13 +0000 (15:40 -0700)]
Merge remote branch 'dme/dme-for-cworth'

Conflicts:
notmuch.c (Simply the change in documentation indentation level).

14 years agoMakefile: Only print the "make install" hint after the first build.
Carl Worth [Fri, 2 Apr 2010 21:06:32 +0000 (14:06 -0700)]
Makefile: Only print the "make install" hint after the first build.

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.

14 years agonotmuch help: Eliminate a gratuitous level of indentation.
Carl Worth [Fri, 2 Apr 2010 19:26:31 +0000 (12:26 -0700)]
notmuch help: Eliminate a gratuitous level of indentation.

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.

14 years agonotmuch help: Simplify output by omitting arguments for each command.
Carl Worth [Fri, 2 Apr 2010 19:12:18 +0000 (12:12 -0700)]
notmuch help: Simplify output by omitting arguments for each command.

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".)

14 years agonotmuch: Add a version (0.1 initially) with a new --version option.
Carl Worth [Fri, 2 Apr 2010 18:55:09 +0000 (11:55 -0700)]
notmuch: Add a version (0.1 initially) with a new --version option.

We're planning to do actual releases soon, so we need a version
number to put into the tar file.

14 years agonotmuch: Add support for a --help option.
Carl Worth [Fri, 2 Apr 2010 18:53:22 +0000 (11:53 -0700)]
notmuch: Add support for a --help option.

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.

14 years agonotmuch: Add a 'part' subcommand
David Edmondson [Wed, 24 Mar 2010 07:21:20 +0000 (07:21 +0000)]
notmuch: Add a 'part' subcommand

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.

14 years agonotmuch-show: Add unix and relative dates to the JSON output
David Edmondson [Tue, 23 Mar 2010 09:40:48 +0000 (09:40 +0000)]
notmuch-show: Add unix and relative dates to the JSON output

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.

14 years agoCompile a static notmuch binary (but only install the shared version)
Carl Worth [Thu, 1 Apr 2010 22:03:40 +0000 (15:03 -0700)]
Compile a static notmuch binary (but only install the shared version)

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.

14 years agoSetup the GMimeStream only when needed
nstraz@redhat.com [Thu, 1 Apr 2010 13:47:21 +0000 (09:47 -0400)]
Setup the GMimeStream only when needed

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.

14 years agoMakefile: Create include directory when installing headers
Michal Sojka [Thu, 1 Apr 2010 11:47:45 +0000 (13:47 +0200)]
Makefile: Create include directory when installing headers

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.

14 years agolib: Switch to a 3-part version number for the library interface.
Carl Worth [Thu, 1 Apr 2010 07:41:25 +0000 (00:41 -0700)]
lib: Switch to a 3-part version number for the library interface.

With a carefully documented description of how to increment the
various version components.

14 years agoMakefiles: Align the columns of output.
Carl Worth [Thu, 1 Apr 2010 07:07:08 +0000 (00:07 -0700)]
Makefiles: Align the columns of output.

Much better.

14 years agoMakefiles: Make the install rules quiet like the compilation rules.
Carl Worth [Thu, 1 Apr 2010 06:54:21 +0000 (23:54 -0700)]
Makefiles: Make the install rules quiet like the compilation rules.

The output from make is looking better all the time, (though the
columns still aren't lined up).

14 years agoMakefile: Fix to print CFLAGS with "make V=0"
Carl Worth [Thu, 1 Apr 2010 06:32:35 +0000 (23:32 -0700)]
Makefile: Fix to print CFLAGS with "make V=0"

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.

14 years agoMakefiles: Eliminate shell for loops in rule definitions.
Carl Worth [Thu, 1 Apr 2010 05:59:30 +0000 (22:59 -0700)]
Makefiles: Eliminate shell for loops in rule definitions.

These just made the output look so ugly, and weren't actually making
the rule definitions any simpler. Good riddance.

14 years agoMove installation of library from top-level to lib/Makefile.local
Carl Worth [Thu, 1 Apr 2010 05:47:12 +0000 (22:47 -0700)]
Move installation of library from top-level to lib/Makefile.local

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).

14 years agoMakefile.config: Avoid pre-expanding the ${prefix} variable.
Carl Worth [Thu, 1 Apr 2010 05:41:02 +0000 (22:41 -0700)]
Makefile.config: Avoid pre-expanding the ${prefix} variable.

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.

14 years agoMove some variable assignments from Makefile.local to Makefile.config
Carl Worth [Thu, 1 Apr 2010 05:29:16 +0000 (22:29 -0700)]
Move some variable assignments from Makefile.local to Makefile.config

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.

14 years agoMove bulk of rules from Makefile to Makefile.local.
Carl Worth [Thu, 1 Apr 2010 05:12:01 +0000 (22:12 -0700)]
Move bulk of rules from Makefile to Makefile.local.

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.

14 years agoconfigure: Fix installation of library to work with alternate --prefix
Carl Worth [Thu, 1 Apr 2010 01:17:51 +0000 (18:17 -0700)]
configure: Fix installation of library to work with alternate --prefix

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).

14 years agoconfigure: Fix typo in help message.
Carl Worth [Thu, 1 Apr 2010 01:17:29 +0000 (18:17 -0700)]
configure: Fix typo in help message.

Documentation is installed to PREFIX/man not PREFIX/share.

14 years agoAdd a --libdir option to ./configure
Ingmar Vanhassel [Fri, 12 Mar 2010 13:47:36 +0000 (14:47 +0100)]
Add a --libdir option to ./configure

This allows packagers to specify to which directory libraries should be
installed.

Signed-off-by: Ingmar Vanhassel <ingmar@exherbo.org>
14 years agoFix target dependencies for multiple jobs
Saleem Abdulrasool [Fri, 12 Mar 2010 13:47:35 +0000 (14:47 +0100)]
Fix target dependencies for multiple jobs

Signed-off-by: Ingmar Vanhassel <ingmar@exherbo.org>
14 years agoBuild and link against notmuch shared library, install notmuch.h
Ben Gamari [Fri, 12 Mar 2010 13:47:34 +0000 (14:47 +0100)]
Build and link against notmuch shared library, install notmuch.h

Signed-off-by: Ingmar Vanhassel <ingmar@exherbo.org>
14 years agoemacs: Fix the notmuch-search-authors-width variable.
Carl Worth [Thu, 11 Mar 2010 23:04:17 +0000 (15:04 -0800)]
emacs: Fix the notmuch-search-authors-width variable.

This variable existed previously, but wasn't actually used for anything.

14 years agoClarify documentation of notmuch_database_add_message.
Carl Worth [Wed, 31 Mar 2010 20:28:45 +0000 (13:28 -0700)]
Clarify documentation of notmuch_database_add_message.

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.

14 years agoTODO: Note that '=' should sometimes count from the end of the buffer.
Carl Worth [Wed, 31 Mar 2010 20:27:16 +0000 (13:27 -0700)]
TODO: Note that '=' should sometimes count from the end of the buffer.

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.

14 years agoTODO: Add a todo item for adding a message as a blob, rather than a filename.
Carl Worth [Thu, 11 Mar 2010 20:49:56 +0000 (12:49 -0800)]
TODO: Add a todo item for adding a message as a blob, rather than a filename.

This was suggested by Srinivasa and is intended to make it easier to
integrate notmuch into an mbox-loving mail client.

14 years agoTODO: Add some new items about improving the test suite.
Carl Worth [Thu, 11 Mar 2010 18:35:05 +0000 (10:35 -0800)]
TODO: Add some new items about improving the test suite.

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.

14 years agotest: Fix phrase-search tests.
Carl Worth [Thu, 11 Mar 2010 17:55:06 +0000 (09:55 -0800)]
test: Fix phrase-search tests.

With some extra qutotation marks, we are now doing actual phrase
searches so these tests pass.

14 years agotest: Add some negative results for the phrase searches.
Carl Worth [Thu, 11 Mar 2010 17:52:08 +0000 (09:52 -0800)]
test: Add some negative results for the phrase searches.

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.

14 years agonotmuch new implementation
Sebastian Spaeth [Wed, 31 Mar 2010 08:23:29 +0000 (10:23 +0200)]
notmuch new implementation

It can not add and remove messages. However, message moves are not detected and we do not modify or honor the Directory entries yet.

14 years agodatabase(): Actually return a value on remove_message()
Sebastian Spaeth [Wed, 31 Mar 2010 08:12:55 +0000 (10:12 +0200)]
database(): Actually return a value on remove_message()

14 years agonotmuch: refactor stuff into a Notmuch class
Sebastian Spaeth [Wed, 31 Mar 2010 06:39:14 +0000 (08:39 +0200)]
notmuch: refactor stuff into a Notmuch class

This commit contains many minor and bigger changes, such as the removal of the logging import too.

14 years agodatabase.py: also need to import Message
Sebastian Spaeth [Tue, 30 Mar 2010 14:10:07 +0000 (16:10 +0200)]
database.py: also need to import Message

14 years agoUbuntu debian file creation documentation
Sebastian Spaeth [Tue, 30 Mar 2010 11:50:11 +0000 (13:50 +0200)]
Ubuntu debian file creation documentation

14 years agoDebian pkg creation stuff
Sebastian Spaeth [Tue, 30 Mar 2010 10:07:53 +0000 (12:07 +0200)]
Debian pkg creation stuff

14 years agomessage.py: Don't use ctypes.c_bool as that does not exist in python 2.5
Sebastian Spaeth [Tue, 30 Mar 2010 09:42:52 +0000 (11:42 +0200)]
message.py: Don't use ctypes.c_bool as that does not exist in python 2.5

14 years agomessage.py: fix indentation
Jesse Rosenthal [Tue, 30 Mar 2010 09:00:27 +0000 (11:00 +0200)]
message.py: fix indentation

14 years agoNeed to do capitalization changes in dict keys from rev 45d2012fcf51 for all usages
Sebastian Spaeth [Tue, 30 Mar 2010 07:54:41 +0000 (09:54 +0200)]
Need to do capitalization changes in dict keys from rev 45d2012fcf51 for all usages

14 years agomessage.py: small doc changes and unused code removal
Sebastian Spaeth [Tue, 30 Mar 2010 07:34:40 +0000 (09:34 +0200)]
message.py: small doc changes and unused code removal

14 years agoRevert some unneeded white space changes
Sebastian Spaeth [Tue, 30 Mar 2010 07:04:48 +0000 (09:04 +0200)]
Revert some unneeded white space changes

14 years ago[REV2] adding part, simplifying Message.get_parts(), and fixing json to work with...
Jesse Rosenthal [Tue, 30 Mar 2010 06:59:40 +0000 (08:59 +0200)]
[REV2] adding part, simplifying Message.get_parts(), and fixing json to work with dme's json ui
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.

---

14 years agoimplement sort order for notmuch show
Jesse Rosenthal [Sat, 27 Mar 2010 23:02:44 +0000 (00:02 +0100)]
implement sort order for notmuch show

14 years agofix wrongly names variable format->out_format
Sebastian Spaeth [Thu, 25 Mar 2010 15:32:26 +0000 (16:32 +0100)]
fix wrongly names variable format->out_format

14 years agorename show_messages to print_messages and fix up the arg parsing for notmuch show...
Sebastian Spaeth [Thu, 25 Mar 2010 15:22:59 +0000 (16:22 +0100)]
rename show_messages to print_messages and fix up the arg parsing for notmuch show a bit

14 years agoMessage(): add 'match' result in text output. Fix is_match to use class, not instance...
Sebastian Spaeth [Thu, 25 Mar 2010 14:55:23 +0000 (15:55 +0100)]
Message(): add 'match' result in text output. Fix is_match to use class, not instance, attributes.

14 years agomessage.yp: add GPL v3 boilerplate and add Jesse as copyright holder
Sebastian Spaeth [Thu, 25 Mar 2010 14:36:20 +0000 (15:36 +0100)]
message.yp: add GPL v3 boilerplate and add Jesse as copyright holder

14 years agoMessage(): Implement show message as text or json
Jesse Rosenthal [Thu, 25 Mar 2010 14:29:01 +0000 (15:29 +0100)]
Message(): Implement show message as text or json

14 years agonotmuch: Make modifications to implement notmuch search
Jesse Rosenthal [Thu, 25 Mar 2010 14:17:31 +0000 (15:17 +0100)]
notmuch: Make modifications to implement notmuch search

14 years agopush __VERSION__ to post release 0.2.1+
Sebastian Spaeth [Thu, 25 Mar 2010 13:48:44 +0000 (14:48 +0100)]
push __VERSION__ to post release 0.2.1+

14 years agoAdded tag v0.2.1 for changeset 8f496a1f9b34
Sebastian Spaeth [Thu, 25 Mar 2010 13:30:58 +0000 (14:30 +0100)]
Added tag v0.2.1 for changeset 8f496a1f9b34

14 years agobump __VERSION__ to 0.2.1
Sebastian Spaeth [Thu, 25 Mar 2010 13:30:50 +0000 (14:30 +0100)]
bump __VERSION__ to 0.2.1

14 years agodocs: Improve documentations
Sebastian Spaeth [Thu, 25 Mar 2010 13:28:56 +0000 (14:28 +0100)]
docs: Improve documentations

14 years agoImplement Database.upgrade() to get the last bit of API. We are complete now.
Sebastian Spaeth [Thu, 25 Mar 2010 12:13:44 +0000 (13:13 +0100)]
Implement Database.upgrade() to get the last bit of API. We are complete now.

14 years agoImplement Filenames() iterator. The API should be complete at this point.
Sebastian Spaeth [Thu, 25 Mar 2010 11:01:20 +0000 (12:01 +0100)]
Implement Filenames() iterator. The API should be complete at this point.

We are still missing Database.upgrade() as I am not sure how to implement the callback, and it's not that important for now. Documentation for the new classes is written inline, but not integrated in the docs yet.

14 years agoImplement Database().get_directory() and Directory() class.
Sebastian Spaeth [Thu, 25 Mar 2010 10:39:31 +0000 (11:39 +0100)]
Implement Database().get_directory() and Directory() class.

14 years agoImplement Message().get|set_flag()
Sebastian Spaeth [Thu, 25 Mar 2010 07:39:21 +0000 (08:39 +0100)]
Implement Message().get|set_flag()

These were the last 2 missing methods from the Message object, which should be feature complete now.

14 years agofix documentations, and add a very brittle notmuch reply command
Sebastian Spaeth [Wed, 24 Mar 2010 16:18:33 +0000 (17:18 +0100)]
fix documentations, and add a very brittle notmuch reply command

14 years agoAdded tag v0.2.0 for changeset 36e2dd4e739a
Sebastian Spaeth [Wed, 24 Mar 2010 11:34:55 +0000 (12:34 +0100)]
Added tag v0.2.0 for changeset 36e2dd4e739a

14 years agoREADME: update changelog
Sebastian Spaeth [Wed, 24 Mar 2010 11:34:48 +0000 (12:34 +0100)]
README: update changelog

14 years agobump __VERSION__ to 0.2.0
Sebastian Spaeth [Wed, 24 Mar 2010 11:28:17 +0000 (12:28 +0100)]
bump __VERSION__ to 0.2.0

14 years agotry c_long rather c_int64 for time_t
Sebastian Spaeth [Wed, 24 Mar 2010 10:51:12 +0000 (11:51 +0100)]
try c_long rather c_int64 for time_t

14 years agotime_t is a signed int, not an unsigned one...
Sebastian Spaeth [Wed, 24 Mar 2010 10:45:31 +0000 (11:45 +0100)]
time_t is a signed int, not an unsigned one...

14 years agoFactor Messages() and Message() out into their own file. rename tags.py to tag.py...
Sebastian Spaeth [Wed, 24 Mar 2010 10:32:30 +0000 (11:32 +0100)]
Factor Messages() and Message() out into their own file. rename tags.py to tag.py for consistency.

--HG--
rename : cnotmuch/tags.py => cnotmuch/tag.py

14 years agonotmuch: Implement 'notmuch search'
Sebastian Spaeth [Wed, 24 Mar 2010 10:08:43 +0000 (11:08 +0100)]
notmuch: Implement 'notmuch search'

This passes all search tests for the notmuch test suite. We don't have the nice
recent date formatting, no --format and no --sort option implemented though.

14 years agoImplement Thread() and Threads()
Sebastian Spaeth [Wed, 24 Mar 2010 10:07:22 +0000 (11:07 +0100)]
Implement Thread() and Threads()

Most of Thread() is implemented now and all of Threads(). Reorganized the
source somewhat and various minor fixes throughout.

14 years agodocs: Update documentation
Sebastian Spaeth [Wed, 24 Mar 2010 10:05:54 +0000 (11:05 +0100)]
docs: Update documentation

Update the docs and include a page describing the notmuch "binary"

14 years agoAdded tag v0.1.1 for changeset 4fdbf2935cdf
Sebastian Spaeth [Mon, 22 Mar 2010 11:50:33 +0000 (12:50 +0100)]
Added tag v0.1.1 for changeset 4fdbf2935cdf

14 years agoMake __VERSION__ available via cnotmuch.notmuch.__VERSION__ and improve README
Sebastian Spaeth [Mon, 22 Mar 2010 11:32:44 +0000 (12:32 +0100)]
Make __VERSION__ available via cnotmuch.notmuch.__VERSION__ and improve README

Rather than hardcoding the version in various places, we export it from the module itself. Also improve the README somewhat.

14 years agonotmuch: use new function Database().create_query() for 'count'
Sebastian Spaeth [Mon, 22 Mar 2010 10:20:00 +0000 (11:20 +0100)]
notmuch: use new function Database().create_query() for 'count'

14 years agoFix Database().create_query() to actually initialize the Query with the correct object.
Sebastian Spaeth [Mon, 22 Mar 2010 10:19:51 +0000 (11:19 +0100)]
Fix Database().create_query() to actually initialize the Query with the correct object.

We were passing the internal pointer to the notmuch_database_t object to Query(), but it should be initialized with the Database() object itself. This rightfully raised an exception. Yay, for thorough sanity checking.

14 years agosetup.py and MANIFEST.in for the 0.1 release. Unfortunately post-version tag.
Sebastian Spaeth [Mon, 22 Mar 2010 09:48:03 +0000 (10:48 +0100)]
setup.py and MANIFEST.in for the 0.1 release. Unfortunately post-version tag.

14 years agoAdded tag v0.1 for changeset 27f38f75d27d
Sebastian Spaeth [Mon, 22 Mar 2010 09:40:08 +0000 (10:40 +0100)]
Added tag v0.1 for changeset 27f38f75d27d

14 years agoImplement Message.get_replies()
Sebastian Spaeth [Fri, 19 Mar 2010 13:24:40 +0000 (14:24 +0100)]
Implement Message.get_replies()

14 years agodocs: Add missing newline that broke formatting
Sebastian Spaeth [Fri, 19 Mar 2010 10:01:19 +0000 (11:01 +0100)]
docs: Add missing newline that broke formatting

14 years agoAdd Database.create_query() as a shorthand for db=Database();q=Query(db,"")
Sebastian Spaeth [Fri, 19 Mar 2010 09:55:06 +0000 (10:55 +0100)]
Add Database.create_query() as a shorthand for db=Database();q=Query(db,"")

This is a convenience extension to the C API. I hardly saves any typing, but
let's us automatically free the top-level Database() object when we delete
the Query().

14 years agoDatabase(): implement as of yet untested add_message() and remove_message()
Sebastian Spaeth [Fri, 19 Mar 2010 09:53:14 +0000 (10:53 +0100)]
Database(): implement as of yet untested add_message() and remove_message()

14 years agodocs: Various typo fixes in docstrings
Sebastian Spaeth [Fri, 19 Mar 2010 09:52:15 +0000 (10:52 +0100)]
docs: Various typo fixes in docstrings

14 years agoDatabase(): Factor out the test for an initialized self._db
Sebastian Spaeth [Fri, 19 Mar 2010 09:51:35 +0000 (10:51 +0100)]
Database(): Factor out the test for an initialized self._db

We need it in basically every function, so let's split this out.

14 years agoimplement Message.get_thread_id()
Sebastian Spaeth [Fri, 19 Mar 2010 08:46:44 +0000 (09:46 +0100)]
implement Message.get_thread_id()

14 years agonotmuch restore: only delete a message's old tags if they are not a subset of the...
Sebastian Spaeth [Fri, 19 Mar 2010 08:39:23 +0000 (09:39 +0100)]
notmuch restore: only delete a message's old tags if they are not a subset of the new ones.

14 years agohgignore: ignore test/test*
Sebastian Spaeth [Fri, 19 Mar 2010 08:38:43 +0000 (09:38 +0100)]
hgignore: ignore test/test*

14 years agonotmuch: implement restore. We pass now all 'dump' and 'restore' tests in the test...
Sebastian Spaeth [Fri, 19 Mar 2010 08:11:22 +0000 (09:11 +0100)]
notmuch: implement restore. We pass now all 'dump' and 'restore' tests in the test suite

14 years agonotmuch: Use Query.count_messages() rather len(Query.search_messages())
Sebastian Spaeth [Fri, 19 Mar 2010 07:47:14 +0000 (08:47 +0100)]
notmuch: Use Query.count_messages() rather len(Query.search_messages())

In my tests, this is about 10 times faster and returned the same results,
although both operations are really fast.

14 years agoQuery(): Fix _nmlib -> nmlib type & clarify docs a bit
Sebastian Spaeth [Fri, 19 Mar 2010 07:44:34 +0000 (08:44 +0100)]
Query(): Fix _nmlib -> nmlib type & clarify docs a bit