Sebastian Spaeth
a27c480048
Implement Database().get_directory() and Directory() class.
2010-03-25 11:39:31 +01:00
Sebastian Spaeth
e80daac293
Implement Message().get|set_flag()
...
These were the last 2 missing methods from the Message object, which should be feature complete now.
2010-03-25 08:39:21 +01:00
Sebastian Spaeth
9058e3d1b5
fix documentations, and add a very brittle notmuch reply command
2010-03-24 17:18:33 +01:00
Sebastian Spaeth
f55c9af9ab
Added tag v0.2.0 for changeset 36e2dd4e739a
2010-03-24 12:34:55 +01:00
Sebastian Spaeth
99a24452be
README: update changelog
2010-03-24 12:34:48 +01:00
Sebastian Spaeth
c4e88d3aba
bump __VERSION__ to 0.2.0
2010-03-24 12:28:17 +01:00
Sebastian Spaeth
81a041d4cb
try c_long rather c_int64 for time_t
2010-03-24 11:51:12 +01:00
Sebastian Spaeth
6efd3c8201
time_t is a signed int, not an unsigned one...
2010-03-24 11:45:31 +01:00
Sebastian Spaeth
898341f7f7
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
2010-03-24 11:32:30 +01:00
Sebastian Spaeth
9b23eb2baa
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.
2010-03-24 11:08:43 +01:00
Sebastian Spaeth
2a14b523b0
Implement Thread() and Threads()
...
Most of Thread() is implemented now and all of Threads(). Reorganized the
source somewhat and various minor fixes throughout.
2010-03-24 11:07:22 +01:00
Sebastian Spaeth
bb57345740
docs: Update documentation
...
Update the docs and include a page describing the notmuch "binary"
2010-03-24 11:05:54 +01:00
Sebastian Spaeth
f3cfa749c1
Added tag v0.1.1 for changeset 4fdbf2935cdf
2010-03-22 12:50:33 +01:00
Sebastian Spaeth
2dd0cf8f5b
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.
2010-03-22 12:32:44 +01:00
Sebastian Spaeth
2b32acacbd
notmuch: use new function Database().create_query() for 'count'
2010-03-22 11:20:00 +01:00
Sebastian Spaeth
63c5a6d77d
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.
2010-03-22 11:19:51 +01:00
Sebastian Spaeth
c3239d3eb4
setup.py and MANIFEST.in for the 0.1 release. Unfortunately post-version tag.
2010-03-22 10:48:03 +01:00
Sebastian Spaeth
a0add768c9
Added tag v0.1 for changeset 27f38f75d27d
2010-03-22 10:40:08 +01:00
Sebastian Spaeth
5186611851
Implement Message.get_replies()
2010-03-19 14:24:40 +01:00
Sebastian Spaeth
e3aa28f055
docs: Add missing newline that broke formatting
2010-03-19 11:01:19 +01:00
Sebastian Spaeth
0b57cb8ed9
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().
2010-03-19 10:55:06 +01:00
Sebastian Spaeth
c90c28ded7
Database(): implement as of yet untested add_message() and remove_message()
2010-03-19 10:53:14 +01:00
Sebastian Spaeth
1ceabfc269
docs: Various typo fixes in docstrings
2010-03-19 10:52:15 +01:00
Sebastian Spaeth
c6fa1ae8d5
Database(): Factor out the test for an initialized self._db
...
We need it in basically every function, so let's split this out.
2010-03-19 10:51:35 +01:00
Sebastian Spaeth
b42fdb0f70
implement Message.get_thread_id()
2010-03-19 09:46:44 +01:00
Sebastian Spaeth
cd109ef559
notmuch restore: only delete a message's old tags if they are not a subset of the new ones.
2010-03-19 09:39:23 +01:00
Sebastian Spaeth
7739b6e469
hgignore: ignore test/test*
2010-03-19 09:38:43 +01:00
Sebastian Spaeth
f2c49bb070
notmuch: implement restore. We pass now all 'dump' and 'restore' tests in the test suite
2010-03-19 09:11:22 +01:00
Sebastian Spaeth
540536b98d
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.
2010-03-19 08:47:14 +01:00
Sebastian Spaeth
ca38848142
Query(): Fix _nmlib -> nmlib type & clarify docs a bit
2010-03-19 08:44:34 +01:00
Sebastian Spaeth
cd19699e0d
Implement Database.count_messages()
2010-03-19 08:32:29 +01:00
Sebastian Spaeth
350a6884de
notmuch: implement dump to file. Fake notmuch new by calling the real notmuch to enable running the testsuite
2010-03-18 19:11:22 +01:00
Sebastian Spaeth
dd8cdd9b66
add original notmuch testsuite
2010-03-18 19:04:49 +01:00
Sebastian Spaeth
5c936f9135
mention NOTMUCH_CONFIG in the notmuch docstring
2010-03-18 18:51:25 +01:00
Sebastian Spaeth
d566ae643c
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.
2010-03-18 18:48:36 +01:00
Sebastian Spaeth
4ed01d055a
Implement Message.freeze(), thaw(), and remove_all_tags()
2010-03-18 09:34:10 +01:00
Sebastian Spaeth
144953116e
docs: stub out remaining missing bindings to get a reminder
2010-03-18 09:02:59 +01:00
Sebastian Spaeth
8345aab10c
implement Database.get_version() and Database.needs_upgrade()
2010-03-18 08:50:48 +01:00
Sebastian Spaeth
23b32a7dfd
notmuch: implement tag command
2010-03-17 17:32:37 +01:00
Sebastian Spaeth
99880b7dbe
notmuch: fix to use new Query.SORT enum
2010-03-17 17:11:58 +01:00
Sebastian Spaeth
350509028b
Implement Message.add|remove_tag() and documentation
2010-03-17 17:09:58 +01:00
Sebastian Spaeth
d2b4307851
docs: doc improvements
2010-03-17 15:14:44 +01:00
Sebastian Spaeth
61bef71a12
many doc improvements, fixed at least one bug due to parameter renaming
2010-03-17 12:32:22 +01:00
Sebastian Spaeth
06f627df92
Improve source documentation
2010-03-17 11:45:13 +01:00
Sebastian Spaeth
b00c892c65
Implement an Enum class and make the STATUS object one
2010-03-17 11:44:36 +01:00
Sebastian Spaeth
6506175648
README: add link to static docs
2010-03-17 09:28:39 +01:00
Sebastian Spaeth
422ba4beca
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
2010-03-16 20:54:43 +01:00
Sebastian Spaeth
9182b97e26
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
2010-03-16 20:36:04 +01:00
Sebastian Spaeth
5bcd897253
hgignore: update to ignore static documentation
...
--HG--
extra : transplant_source : %9C%CCh%60z%FE%7B1%AC%E6%88%DF7%00%22%7D%09i%EDL
2010-03-16 20:35:34 +01:00
Sebastian Spaeth
ee66e0f52c
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
2010-03-16 17:10:57 +01:00