Sebastian Spaeth
775d3bc313
database.py: also need to import Message
2010-03-30 16:10:07 +02:00
Sebastian Spaeth
21538d18af
message.py: Don't use ctypes.c_bool as that does not exist in python 2.5
2010-03-30 11:42:52 +02:00
Jesse Rosenthal
3c8ba0f18f
message.py: fix indentation
2010-03-30 11:00:27 +02:00
Sebastian Spaeth
3d6590be02
Need to do capitalization changes in dict keys from rev 45d2012fcf51 for all usages
2010-03-30 09:54:41 +02:00
Sebastian Spaeth
bac66abdd2
message.py: small doc changes and unused code removal
2010-03-30 09:34:40 +02:00
Sebastian Spaeth
ad597b153c
Revert some unneeded white space changes
2010-03-30 09:04:48 +02:00
Jesse Rosenthal
c0db88a95c
[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.
---
2010-03-30 08:59:40 +02:00
Jesse Rosenthal
61a547bd3e
implement sort order for notmuch show
2010-03-28 00:02:44 +01:00
Sebastian Spaeth
62a73f7eb0
rename show_messages to print_messages and fix up the arg parsing for notmuch show a bit
2010-03-25 16:22:59 +01:00
Sebastian Spaeth
5c4af8ce39
Message(): add 'match' result in text output. Fix is_match to use class, not instance, attributes.
2010-03-25 15:55:23 +01:00
Sebastian Spaeth
ff7756184d
message.yp: add GPL v3 boilerplate and add Jesse as copyright holder
2010-03-25 15:36:20 +01:00
Jesse Rosenthal
48ec49f05d
Message(): Implement show message as text or json
2010-03-25 15:29:01 +01:00
Sebastian Spaeth
bdc3a95bb7
push __VERSION__ to post release 0.2.1+
2010-03-25 14:48:44 +01:00
Sebastian Spaeth
5bab5968aa
bump __VERSION__ to 0.2.1
2010-03-25 14:30:50 +01:00
Sebastian Spaeth
7390c869c7
docs: Improve documentations
2010-03-25 14:28:56 +01:00
Sebastian Spaeth
bef8bdbd04
Implement Database.upgrade() to get the last bit of API. We are complete now.
2010-03-25 13:13:44 +01:00
Sebastian Spaeth
d49f956027
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.
2010-03-25 12:01:20 +01:00
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
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
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
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
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
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
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
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
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
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
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
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
Sebastian Spaeth
7b032b6f87
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
2010-03-16 16:41:33 +01:00
Sebastian Spaeth
95f259409e
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
2010-03-16 16:20:47 +01:00
Sebastian Spaeth
4081ed75b5
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
2010-03-16 16:09:42 +01:00