]>
git.cworth.org Git - obsolete/notmuch-old/log
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.
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.
Sebastian Spaeth [Wed, 31 Mar 2010 08:12:55 +0000 (10:12 +0200)]
database(): Actually return a value on remove_message()
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.
Sebastian Spaeth [Tue, 30 Mar 2010 14:10:07 +0000 (16:10 +0200)]
database.py: also need to import Message
Sebastian Spaeth [Tue, 30 Mar 2010 11:50:11 +0000 (13:50 +0200)]
Ubuntu debian file creation documentation
Sebastian Spaeth [Tue, 30 Mar 2010 10:07:53 +0000 (12:07 +0200)]
Debian pkg creation stuff
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
Jesse Rosenthal [Tue, 30 Mar 2010 09:00:27 +0000 (11:00 +0200)]
message.py: fix indentation
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
Sebastian Spaeth [Tue, 30 Mar 2010 07:34:40 +0000 (09:34 +0200)]
message.py: small doc changes and unused code removal
Sebastian Spaeth [Tue, 30 Mar 2010 07:04:48 +0000 (09:04 +0200)]
Revert some unneeded white space changes
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.
---
Jesse Rosenthal [Sat, 27 Mar 2010 23:02:44 +0000 (00:02 +0100)]
implement sort order for notmuch show
Sebastian Spaeth [Thu, 25 Mar 2010 15:32:26 +0000 (16:32 +0100)]
fix wrongly names variable format->out_format
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
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.
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
Jesse Rosenthal [Thu, 25 Mar 2010 14:29:01 +0000 (15:29 +0100)]
Message(): Implement show message as text or json
Jesse Rosenthal [Thu, 25 Mar 2010 14:17:31 +0000 (15:17 +0100)]
notmuch: Make modifications to implement notmuch search
Sebastian Spaeth [Thu, 25 Mar 2010 13:48:44 +0000 (14:48 +0100)]
push __VERSION__ to post release 0.2.1+
Sebastian Spaeth [Thu, 25 Mar 2010 13:30:58 +0000 (14:30 +0100)]
Added tag v0.2.1 for changeset
8f496a1f9b34
Sebastian Spaeth [Thu, 25 Mar 2010 13:30:50 +0000 (14:30 +0100)]
bump __VERSION__ to 0.2.1
Sebastian Spaeth [Thu, 25 Mar 2010 13:28:56 +0000 (14:28 +0100)]
docs: Improve documentations
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.
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.
Sebastian Spaeth [Thu, 25 Mar 2010 10:39:31 +0000 (11:39 +0100)]
Implement Database().get_directory() and Directory() class.
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.
Sebastian Spaeth [Wed, 24 Mar 2010 16:18:33 +0000 (17:18 +0100)]
fix documentations, and add a very brittle notmuch reply command
Sebastian Spaeth [Wed, 24 Mar 2010 11:34:55 +0000 (12:34 +0100)]
Added tag v0.2.0 for changeset
36e2dd4e739a
Sebastian Spaeth [Wed, 24 Mar 2010 11:34:48 +0000 (12:34 +0100)]
README: update changelog
Sebastian Spaeth [Wed, 24 Mar 2010 11:28:17 +0000 (12:28 +0100)]
bump __VERSION__ to 0.2.0
Sebastian Spaeth [Wed, 24 Mar 2010 10:51:12 +0000 (11:51 +0100)]
try c_long rather c_int64 for time_t
Sebastian Spaeth [Wed, 24 Mar 2010 10:45:31 +0000 (11:45 +0100)]
time_t is a signed int, not an unsigned one...
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
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.
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.
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"
Sebastian Spaeth [Mon, 22 Mar 2010 11:50:33 +0000 (12:50 +0100)]
Added tag v0.1.1 for changeset
4fdbf2935cdf
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.
Sebastian Spaeth [Mon, 22 Mar 2010 10:20:00 +0000 (11:20 +0100)]
notmuch: use new function Database().create_query() for 'count'
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.
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.
Sebastian Spaeth [Mon, 22 Mar 2010 09:40:08 +0000 (10:40 +0100)]
Added tag v0.1 for changeset
27f38f75d27d
Sebastian Spaeth [Fri, 19 Mar 2010 13:24:40 +0000 (14:24 +0100)]
Implement Message.get_replies()
Sebastian Spaeth [Fri, 19 Mar 2010 10:01:19 +0000 (11:01 +0100)]
docs: Add missing newline that broke formatting
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().
Sebastian Spaeth [Fri, 19 Mar 2010 09:53:14 +0000 (10:53 +0100)]
Database(): implement as of yet untested add_message() and remove_message()
Sebastian Spaeth [Fri, 19 Mar 2010 09:52:15 +0000 (10:52 +0100)]
docs: Various typo fixes in docstrings
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.
Sebastian Spaeth [Fri, 19 Mar 2010 08:46:44 +0000 (09:46 +0100)]
implement Message.get_thread_id()
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.
Sebastian Spaeth [Fri, 19 Mar 2010 08:38:43 +0000 (09:38 +0100)]
hgignore: ignore test/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
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.
Sebastian Spaeth [Fri, 19 Mar 2010 07:44:34 +0000 (08:44 +0100)]
Query(): Fix _nmlib -> nmlib type & clarify docs a bit
Sebastian Spaeth [Fri, 19 Mar 2010 07:32:29 +0000 (08:32 +0100)]
Implement Database.count_messages()
Sebastian Spaeth [Thu, 18 Mar 2010 18:11:22 +0000 (19:11 +0100)]
notmuch: implement dump to file. Fake notmuch new by calling the real notmuch to enable running the testsuite
Sebastian Spaeth [Thu, 18 Mar 2010 18:04:49 +0000 (19:04 +0100)]
add original notmuch testsuite
Sebastian Spaeth [Thu, 18 Mar 2010 17:51:25 +0000 (18:51 +0100)]
mention NOTMUCH_CONFIG in the notmuch docstring
Sebastian Spaeth [Thu, 18 Mar 2010 17:48:36 +0000 (18:48 +0100)]
Database(): honor NOTMUCH_CONFIG env variable for reading the standard database location.
Also replaces all Database.MODE.* defaults in the keyword arguments with their numeric replacement, they do not seem to be available yet at that time, so the python parser complained about them as being unknown.
Sebastian Spaeth [Thu, 18 Mar 2010 08:34:10 +0000 (09:34 +0100)]
Implement Message.freeze(), thaw(), and remove_all_tags()
Sebastian Spaeth [Thu, 18 Mar 2010 08:02:59 +0000 (09:02 +0100)]
docs: stub out remaining missing bindings to get a reminder
Sebastian Spaeth [Thu, 18 Mar 2010 07:50:48 +0000 (08:50 +0100)]
implement Database.get_version() and Database.needs_upgrade()
Sebastian Spaeth [Wed, 17 Mar 2010 16:32:37 +0000 (17:32 +0100)]
notmuch: implement tag command
Sebastian Spaeth [Wed, 17 Mar 2010 16:11:58 +0000 (17:11 +0100)]
notmuch: fix to use new Query.SORT enum
Sebastian Spaeth [Wed, 17 Mar 2010 16:09:58 +0000 (17:09 +0100)]
Implement Message.add|remove_tag() and documentation
Sebastian Spaeth [Wed, 17 Mar 2010 14:14:44 +0000 (15:14 +0100)]
docs: doc improvements
Sebastian Spaeth [Wed, 17 Mar 2010 11:32:22 +0000 (12:32 +0100)]
many doc improvements, fixed at least one bug due to parameter renaming
Sebastian Spaeth [Wed, 17 Mar 2010 10:45:13 +0000 (11:45 +0100)]
Improve source documentation
Sebastian Spaeth [Wed, 17 Mar 2010 10:44:36 +0000 (11:44 +0100)]
Implement an Enum class and make the STATUS object one
Sebastian Spaeth [Wed, 17 Mar 2010 08:28:39 +0000 (09:28 +0100)]
README: add link to static docs
Sebastian Spaeth [Tue, 16 Mar 2010 19:54:43 +0000 (20:54 +0100)]
update documentation so it makes sense
--HG--
extra : transplant_source : %3F%E9%23%2B%2A%83%06g%10R%CA%CD%27N5%3E%22g%1E%AD
Sebastian Spaeth [Tue, 16 Mar 2010 19:36:04 +0000 (20:36 +0100)]
add sphinx docs stubs (they don't make sense yet)
--HG--
extra : transplant_source : %F3A%2C%D95%02%BF%1B%A1%D7%17%07%EDqh%23l8%93%20
Sebastian Spaeth [Tue, 16 Mar 2010 19:35:34 +0000 (20:35 +0100)]
hgignore: update to ignore static documentation
--HG--
extra : transplant_source : %9C%CCh%60z%FE%7B1%AC%E6%88%DF7%00%22%7D%09i%EDL
Sebastian Spaeth [Tue, 16 Mar 2010 16:10:57 +0000 (17:10 +0100)]
implement Message.get_date() and Message.get_header()
--HG--
extra : transplant_source : %90%E9%A5Z%D1%E6%26%1F%D3%8B%CCsbb%E9%17%FA%5CD%9F
Sebastian Spaeth [Tue, 16 Mar 2010 15:41:33 +0000 (16:41 +0100)]
implement stub for notmuch show. Remove finished ToDo items
--HG--
extra : transplant_source : 2%0B%97h%40Af%07%DD%F2%5ESX%20%05%3D%C0%C5v%F8
Sebastian Spaeth [Tue, 16 Mar 2010 15:20:47 +0000 (16:20 +0100)]
implement Query.set_sort() and sort notmuch dump by message id
--HG--
extra : transplant_source : 1%BC%F3%ED%3C%C7c%0EFh%06%B6L%7C%8E%8F%EF%A2%8E%A8
Sebastian Spaeth [Tue, 16 Mar 2010 15:09:42 +0000 (16:09 +0100)]
implement notmuch dump and Messages.len()
--HG--
extra : transplant_source : %03_%C7%99L%16%7E%A8%B1p%11%11%A0%E3h%A3%AB%B6%FB%86
Sebastian Spaeth [Tue, 16 Mar 2010 14:53:54 +0000 (15:53 +0100)]
implement message counting
--HG--
extra : transplant_source : %8E%83%C2%83%FA%F8X%B6%16%1D%D3X%C4o%A2%A8%28%11G%AF
Sebastian Spaeth [Tue, 16 Mar 2010 14:40:13 +0000 (15:40 +0100)]
implement quoatation mangling in the notmuch binary
--HG--
extra : transplant_source : %E2I%C6%0A%05%3B%F3%27%07%96%DC%D6%91%C3%FA%8E%1B%5B%2B%3D
Sebastian Spaeth [Tue, 16 Mar 2010 14:00:42 +0000 (15:00 +0100)]
Fix iterator classes to not skip the first element when iterating
--HG--
extra : transplant_source : %19wvB%19A%0A%CD%E7%28-%F0%12j%7FG%0DD%16%F4
Sebastian Spaeth [Tue, 16 Mar 2010 13:57:07 +0000 (14:57 +0100)]
use logging.debug for debug output. Implement notmuch search-tags
--HG--
extra : transplant_source : %BAn%2B%93B%1EkU8%A6-I%5D%E1%E4%2B%D6E%0C%F5
Sebastian Spaeth [Tue, 16 Mar 2010 13:45:01 +0000 (14:45 +0100)]
Fixing the crashes that I was seeing
--HG--
extra : transplant_source : %3E%B1%BB%DF%3C%22%A6%CC%90Z%E8v%95%962%DD%B2%A1%11%CC
Sebastian Spaeth [Tue, 16 Mar 2010 13:28:05 +0000 (14:28 +0100)]
implement Query() and search_messages()
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
Sebastian Spaeth [Tue, 16 Mar 2010 11:40:20 +0000 (12:40 +0100)]
remove useless tags struct
--HG--
extra : transplant_source : %EF%CD%D8K%E5%E1F%95%1E%F9%F3%88%E7%B0%600%21Wwp
Sebastian Spaeth [Tue, 16 Mar 2010 11:39:47 +0000 (12:39 +0100)]
Query() stub
--HG--
extra : transplant_source : %1E%14%7B%E7J%DD%96O%C7%E6%B5%FB%D8V%7B%0F%7C%25ot
Sebastian Spaeth [Tue, 16 Mar 2010 11:28:05 +0000 (12:28 +0100)]
some more stubs
--HG--
extra : transplant_source : %2A%C5%3C%C0u%B8%0DLx%3Eg%A2%06%F6%1E%B8%99C7%B3
Sebastian Spaeth [Tue, 16 Mar 2010 11:24:52 +0000 (12:24 +0100)]
nonfunctional changes in notmuch stub
--HG--
extra : transplant_source : %F2%28%18m%91%F5%DA%08%17%AC/%9E%C2%AE%95%91%92%C4%A3%7F
Sebastian Spaeth [Tue, 16 Mar 2010 11:21:18 +0000 (12:21 +0100)]
add notmuch stub that will allow me to run the notmuch testsuite over the python bindings.
--HG--
extra : transplant_source : %E4%EF%29%A3%9BA%C57%7C%EC%B0%7BF%FB%00%F0%EB%97%92%E3
Sebastian Spaeth [Tue, 16 Mar 2010 10:52:56 +0000 (11:52 +0100)]
Find the notmuch shared lib rather than hardode a location
--HG--
extra : transplant_source : %DEOdF%80%83%3A%3D%98%5C%AE%81%FE%BA%EF%1A%16%82u%E8
Sebastian Spaeth [Tue, 16 Mar 2010 10:27:31 +0000 (11:27 +0100)]
Implement Message(), Database.find_message(), Database.create()
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
Sebastian Spaeth [Mon, 15 Mar 2010 16:12:52 +0000 (17:12 +0100)]
improve README example session to reflect reality
--HG--
extra : transplant_source : %15P%B8E%1A%CE%0D%DE%CEB%E0/%E04%2B%3F%255%A1%F9
Sebastian Spaeth [Mon, 15 Mar 2010 15:00:11 +0000 (16:00 +0100)]
Tags: clarify documentation: we can only iterate once over Tags, and free underlying tags once we iterated through.
--HG--
extra : transplant_source : %0BI%C9%899k%80%8C4j%07%85%038%86%04%2A%FE%A6%A3
Sebastian Spaeth [Mon, 15 Mar 2010 14:47:15 +0000 (15:47 +0100)]
initial revision. See README for what works
--HG--
extra : transplant_source : %FBQ%B3%C5%0E%85%E8%0B%154%F5t%19%2A%C6p%A5%1Dd%F1
Sebastian Spaeth [Tue, 16 Mar 2010 21:48:35 +0000 (22:48 +0100)]
COPYING: add GPL v3+
Sebastian Spaeth [Thu, 11 Mar 2010 12:11:43 +0000 (13:11 +0100)]
notmuch-show: add tags to json output
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>
Carl Worth [Wed, 10 Mar 2010 19:07:58 +0000 (11:07 -0800)]
emacs: Fix search refresh when on the last line of a search buffer.
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.
Carl Worth [Wed, 10 Mar 2010 19:05:33 +0000 (11:05 -0800)]
emacs: Adjust search refresh to use a target line not a target position.
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.
Carl Worth [Wed, 10 Mar 2010 18:59:57 +0000 (10:59 -0800)]
Makefile: Fix Makefiles to depend on all child Makefile fragments.
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.